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.
This commit is contained in:
Travis Cross 2014-08-28 12:24:44 +00:00
parent dc88617c99
commit 9dd7173b6e

View File

@ -22,9 +22,12 @@ case "$1" in
/var/log/freeswitch \ /var/log/freeswitch \
/var/run/freeswitch; /var/run/freeswitch;
do do
mkdir -p $x if ! test -d $x; then
chown -R freeswitch:freeswitch $x mkdir -p $x
chmod -R o-rwx,g+u $x chown freeswitch:freeswitch $x
chmod o-rwx,g+u $x
fi
chown freeswitch $x
done done
;; ;;
abort-upgrade|abort-remove|abort-deconfigure) abort-upgrade|abort-remove|abort-deconfigure)