From f775c02c5652576b24cd5e9a2299e489e2e33dbf Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 25 Apr 2017 02:46:00 -0600 Subject: [PATCH] Update and rename source-conf-copy.sh to source-copy.sh --- freebsd/resources/switch/source-conf-copy.sh | 6 ------ freebsd/resources/switch/source-copy.sh | 12 ++++++++++++ 2 files changed, 12 insertions(+), 6 deletions(-) delete mode 100755 freebsd/resources/switch/source-conf-copy.sh create mode 100755 freebsd/resources/switch/source-copy.sh diff --git a/freebsd/resources/switch/source-conf-copy.sh b/freebsd/resources/switch/source-conf-copy.sh deleted file mode 100755 index 711310c..0000000 --- a/freebsd/resources/switch/source-conf-copy.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -mv /usr/local/freeswitch/conf /usr/local/freeswitch/conf.orig -#mkdir -p /etc/freeswitch -mkdir -p /usr/local/freeswitch/conf -cp -R /usr/local/www/fusionpbx/resources/templates/conf/* /usr/local/freeswitch/conf diff --git a/freebsd/resources/switch/source-copy.sh b/freebsd/resources/switch/source-copy.sh new file mode 100755 index 0000000..89362d3 --- /dev/null +++ b/freebsd/resources/switch/source-copy.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +#make a backup of the conf directory +mv /usr/local/freeswitch/conf /usr/local/freeswitch/conf.orig + +#copy the default conf directory +mkdir -p /usr/local/freeswitch/conf +cp -R /usr/local/www/fusionpbx/resources/templates/conf/* /usr/local/freeswitch/conf + +#copy the scripts +cp -R /usr/local/www/fusionpbx/resources/install/scripts /usr/local/freeswitch +chown -R www:www /usr/local/freeswitch