From bc1dcdeab9c2fe73854820171a02893e7e5abb07 Mon Sep 17 00:00:00 2001 From: Mark J Crane Date: Sat, 25 Mar 2017 15:14:21 -0600 Subject: [PATCH] update the switch conf and permissions --- freebsd/resources/switch/conf-copy.sh | 7 ++++--- freebsd/resources/switch/source-permissions.sh | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/freebsd/resources/switch/conf-copy.sh b/freebsd/resources/switch/conf-copy.sh index 8d910a8..77c4b85 100755 --- a/freebsd/resources/switch/conf-copy.sh +++ b/freebsd/resources/switch/conf-copy.sh @@ -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 diff --git a/freebsd/resources/switch/source-permissions.sh b/freebsd/resources/switch/source-permissions.sh index 66c3f66..74d7bb6 100755 --- a/freebsd/resources/switch/source-permissions.sh +++ b/freebsd/resources/switch/source-permissions.sh @@ -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 {} \;