2023-02-28 22:22:33 +01:00
|
|
|
#old
|
|
|
|
|
|
2016-05-26 12:55:14 +02:00
|
|
|
#setup owner and group, permissions and sticky
|
2023-02-28 22:22:33 +01:00
|
|
|
#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
|