Update package-permissions.sh
This commit is contained in:
parent
daeae2e8f0
commit
e36977e2e9
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue