mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 07:45:26 +00:00
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:
parent
6d6fc8c131
commit
bbe2531cb0
9
debian/freeswitch.postinst
vendored
9
debian/freeswitch.postinst
vendored
@ -22,9 +22,12 @@ case "$1" in
|
||||
/var/log/freeswitch \
|
||||
/var/run/freeswitch;
|
||||
do
|
||||
mkdir -p $x
|
||||
chown -R freeswitch:freeswitch $x
|
||||
chmod -R o-rwx,g+u $x
|
||||
if ! test -d $x; then
|
||||
mkdir -p $x
|
||||
chown freeswitch:freeswitch $x
|
||||
chmod o-rwx,g+u $x
|
||||
fi
|
||||
chown freeswitch $x
|
||||
done
|
||||
;;
|
||||
abort-upgrade|abort-remove|abort-deconfigure)
|
||||
|
Loading…
x
Reference in New Issue
Block a user