Source Switch Scripts - Updated source permissions script. (#406)

Make source-permissions.sh the same as package-permissions.sh, since the paths are the same.
This commit is contained in:
fusionate 2023-02-28 14:22:33 -07:00 committed by GitHub
parent 20746dc3ce
commit b20228e19d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 4 deletions

View File

@ -1,5 +1,24 @@
#old
#setup owner and group, permissions and sticky
chmod -R ug+rw /usr/local/freeswitch
touch /usr/local/freeswitch/freeswitch.log
chown -R www-data:www-data /usr/local/freeswitch
find /usr/local/freeswitch -type d -exec chmod 2770 {} \;
#chmod -R ug+rw /usr/local/freeswitch
#touch /usr/local/freeswitch/freeswitch.log
#chown -R www-data:www-data /usr/local/freeswitch
#find /usr/local/freeswitch -type d -exec chmod 2770 {} \;
#current (same paths as package)
#move to script directory so all relative paths work
cd "$(dirname "$0")"
#includes
. ../config.sh
#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
chown -R www-data:www-data /var/cache/fusionpbx