update the switch conf and permissions

This commit is contained in:
Mark J Crane 2017-03-25 15:14:21 -06:00
parent 0e8f0aa7e5
commit bc1dcdeab9
2 changed files with 7 additions and 6 deletions

View File

@ -1,3 +1,4 @@
mv /etc/freeswitch /etc/freeswitch.orig
mkdir /etc/freeswitch
cp -R /var/www/fusionpbx/resources/templates/conf/* /etc/freeswitch
mv /usr/local/freeswitch/conf /usr/local/freeswitch/conf.orig
mkdir -p /etc/freeswitch
mkdir -p /usr/local/freeswitch/conf
cp -R /var/www/fusionpbx/resources/templates/conf/* /usr/local/freeswitch/conf

View File

@ -1,6 +1,6 @@
#setup owner and group, permissions and sticky
chown -R www-data:www-data /usr/local/freeswitch
chown -R www:www /usr/local/freeswitch
chmod -R ug+rw /usr/local/freeswitch
touch /var/log/freeswitch/freeswitch.log
chown -R www-data:www-data /var/log/freeswitch
#touch /var/log/freeswitch/freeswitch.log
#chown -R www:www /var/log/freeswitch
find /usr/local/freeswitch -type d -exec chmod 2770 {} \;