浏览代码

Update and rename package-conf-copy.sh to package-copy.sh

FusionPBX 8 年之前
父节点
当前提交
955d0eb807
共有 2 个文件被更改,包括 12 次插入5 次删除
  1. 0 5
      freebsd/resources/switch/package-conf-copy.sh
  2. 12 0
      freebsd/resources/switch/package-copy.sh

+ 0 - 5
freebsd/resources/switch/package-conf-copy.sh

@@ -1,5 +0,0 @@
-#!/bin/sh
-
-#mv /usr/local/etc/freeswitch /usr/local/etc/freeswitch.orig
-mkdir -p /usr/local/etc/freeswitch
-cp -R /usr/local/www/fusionpbx/resources/templates/conf/* /usr/local/etc/freeswitch

+ 12 - 0
freebsd/resources/switch/package-copy.sh

@@ -0,0 +1,12 @@
+#!/bin/sh
+
+#make a backup of the conf directory
+#mv /usr/local/etc/freeswitch /usr/local/etc/freeswitch.orig
+
+#copy the default conf directory
+mkdir -p /usr/local/etc/freeswitch
+cp -R /usr/local/www/fusionpbx/resources/templates/conf/* /usr/local/etc/freeswitch
+
+#copy the scripts
+cp -R /usr/local/www/fusionpbx/resources/install/scripts /usr/local/share/freeswitch
+chown -R www:www /usr/local/share/freeswitch