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 {} \;