Update package-permissions.sh

Remove the facl and add +x to the directories to get groups working.

For installs using the facl can use this to remove them.

setfacl --remove-all -R /usr/share/freeswitch
setfacl --remove-all -R /var/log/freeswitch
setfacl --remove-all -R /etc/freeswitch
setfacl --remove-all -R /var/lib/freeswitch
This commit is contained in:
FusionPBX 2016-05-25 14:16:52 -06:00
parent b6eeed2089
commit 14d1fb827e
1 changed files with 6 additions and 22 deletions

View File

@ -4,35 +4,19 @@ usermod -a -G www-data freeswitch
#setup owner and group, permissions and sticky
chown -R freeswitch:freeswitch /var/lib/freeswitch
chmod -R 760 /var/lib/freeswitch
chmod -R 770 /var/lib/freeswitch
chmod -R g+s /var/lib/freeswitch
chown -R freeswitch:freeswitch /usr/share/freeswitch
chmod -R 760 /usr/share/freeswitch
chmod -R 760 /usr/share/freeswitch/scripts
chmod -R 760 /usr/share/freeswitch/lang
chmod -R 770 /usr/share/freeswitch
#chmod -R 770 /usr/share/freeswitch/scripts
#chmod -R 770 /usr/share/freeswitch/lang
chmod -R g+s /usr/share/freeswitch
chown -R freeswitch:freeswitch /etc/freeswitch
chmod -R 760 /etc/freeswitch
chmod -R 770 /etc/freeswitch
chmod -R g+s /etc/freeswitch
chown -R freeswitch:freeswitch /var/log/freeswitch
chmod -R 760 /var/log/freeswitch
chmod -R 770 /var/log/freeswitch
chmod -R g+s /var/log/freeswitch
#file access control lists
setfacl -R -m u:www-data:rwx,g:www-data:rwx /var/lib/freeswitch
setfacl -R -d -m u:www-data:rwx,g:www-data:rwx /var/lib/freeswitch
setfacl -R -m u:www-data:rwx,g:www-data:rwx /usr/share/freeswitch
setfacl -R -d -m u:www-data:rwx,g:www-data:rwx /usr/share/freeswitch
setfacl -R -m u:www-data:rwx,g:www-data:rwx /etc/freeswitch
setfacl -R -d -m u:www-data:rwx,g:www-data:rwx /etc/freeswitch
setfacl -R -m u:www-data:rwx,g:www-data:rwx /var/log/freeswitch
setfacl -R -d -m u:www-data:rwx,g:www-data:rwx /var/log/freeswitch
setfacl -R -m u:www-data:rwx,g:www-data:rwx /usr/share/freeswitch/sounds
setfacl -R -d -m u:www-data:rwx,g:www-data:rwx /usr/share/freeswitch/sounds