提交 9dd7173b authored 作者: Travis Cross's avatar Travis Cross

Avoid overaggressive chmod/chown on upgrade

It's reasonable for someone to change one or more of these directory
permissions after installation.  We shouldn't touch more than we need
on upgrade.  Each directory needs to be owned by the freeswitch user,
but past that we can leave discretion to the system administrator.
上级 dc88617c
......@@ -22,9 +22,12 @@ case "$1" in
/var/log/freeswitch \
/var/run/freeswitch;
do
if ! test -d $x; then
mkdir -p $x
chown -R freeswitch:freeswitch $x
chmod -R o-rwx,g+u $x
chown freeswitch:freeswitch $x
chmod o-rwx,g+u $x
fi
chown freeswitch $x
done
;;
abort-upgrade|abort-remove|abort-deconfigure)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论