Files
fusionpbx-install.sh/debian/resources/switch/package-permissions.sh
mafoo bef7c9b4b2 Initial permission changes
added use of getopt to allow command line options to indicate to use different sources

added +x
2016-05-26 19:35:00 +01:00

22 lines
742 B
Bash
Executable File

#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 /usr/share/freeswitch/scripts
chown -R freeswitch:freeswitch /usr/share/freeswitch
chmod -R ug+rw /var/share/freeswitch
find /var/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 {} \;