Преглед изворни кода

Update package-permissions.sh

Adding setfacl in for now.
FusionPBX пре 9 година
родитељ
комит
b6eeed2089
1 измењених фајлова са 16 додато и 0 уклоњено
  1. 16 0
      debian/resources/switch/package-permissions.sh

+ 16 - 0
debian/resources/switch/package-permissions.sh

@@ -20,3 +20,19 @@ chmod -R g+s /etc/freeswitch
 chown -R freeswitch:freeswitch /var/log/freeswitch
 chmod -R 760 /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