forked from norman/fusionpbx-install.sh-github-mirror
Update package-permissions.sh
This commit is contained in:
27
debian/resources/switch/package-permissions.sh
vendored
27
debian/resources/switch/package-permissions.sh
vendored
@@ -1,21 +1,6 @@
|
||||
#add users to the groups
|
||||
usermod -a -G freeswitch www-data
|
||||
usermod -a -G www-data freeswitch
|
||||
|
||||
#setup owner and group, permissions and sticky
|
||||
chown -R freeswitch:freeswitch /var/lib/freeswitch
|
||||
chmod -R ug+rw /var/lib/freeswitch
|
||||
find /var/lib/freeswitch -type d -exec chmod 2770 {} \;
|
||||
|
||||
mkdir -p /usr/share/freeswitch/scripts
|
||||
chown -R freeswitch:freeswitch /usr/share/freeswitch
|
||||
chmod -R ug+rw /usr/share/freeswitch
|
||||
find /usr/share/freeswitch -type d -exec chmod 2770 {} \;
|
||||
|
||||
chown -R freeswitch:freeswitch /etc/freeswitch
|
||||
chmod -R ug+rw /etc/freeswitch
|
||||
find /etc/freeswitch -type d -exec chmod 2770 {} \;
|
||||
|
||||
chown -R freeswitch:freeswitch /var/log/freeswitch
|
||||
chmod -R ug+rw /var/log/freeswitch
|
||||
find /var/log/freeswitch -type d -exec chmod 2770 {} \;
|
||||
#default permissions
|
||||
chown -R www-data:www-data /etc/freeswitch
|
||||
chown -R www-data:www-data /var/lib/freeswitch
|
||||
chown -R www-data:www-data /usr/share/freeswitch
|
||||
chown -R www-data:www-data /var/log/freeswitch
|
||||
chown -R www-data:www-data /var/run/freeswitch
|
||||
|
||||
Reference in New Issue
Block a user