diff options
author | mcrane <mctch@yahoo.com> | 2009-06-11 12:13:18 -0600 |
---|---|---|
committer | mcrane <mctch@yahoo.com> | 2009-06-11 12:13:18 -0600 |
commit | 5a68f9abc69a25167dc5ffcbbc205b9f4bf79d7d (patch) | |
tree | 7591a1e6b19adb8973629c49a1d3d46c976627db /config/freeswitch/freeswitch.inc | |
parent | 865026edf1341db5a266b3cf7fbc41f3ee64e8f1 (diff) | |
download | pfsense-packages-5a68f9abc69a25167dc5ffcbbc205b9f4bf79d7d.tar.gz pfsense-packages-5a68f9abc69a25167dc5ffcbbc205b9f4bf79d7d.tar.bz2 pfsense-packages-5a68f9abc69a25167dc5ffcbbc205b9f4bf79d7d.zip |
FreeSWITCH move folder creation for FAX until after the parent folder is extracted from the freeswitch.tgz file.
Diffstat (limited to 'config/freeswitch/freeswitch.inc')
-rw-r--r-- | config/freeswitch/freeswitch.inc | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/config/freeswitch/freeswitch.inc b/config/freeswitch/freeswitch.inc index 3d6301bf..39f8cf9b 100644 --- a/config/freeswitch/freeswitch.inc +++ b/config/freeswitch/freeswitch.inc @@ -2594,24 +2594,22 @@ function freeswitch_php_install_command() exec("mkdir /usr/local/www/packages/freeswitch/"); } - if (!is_dir('/usr/local/freeswitch/storage/fax/')) { - exec("mkdir /usr/local/freeswitch/storage/fax/"); - } - - if (!is_dir('/usr/local/freeswitch/storage/fax/receive/')) { - exec("mkdir /usr/local/freeswitch/storage/fax/receive/"); - } - //$struname = exec('uname -v'); //if (stristr($struname, 'FreeBSD 7.0')) { // $freebsd_version = "7.0"; //} - //exec("cd /tmp/;fetch http://www.pfsense.com/packages/config/freeswitch/freeswitch.tgz"); //handled by freeswitch.xml exec("tar zxvf /tmp/freeswitch.tgz -C /usr/local/"); unlink_if_exists("/tmp/freeswitch.tgz"); + if (!is_dir('/usr/local/freeswitch/storage/fax/')) { + exec("mkdir /usr/local/freeswitch/storage/fax/"); + } + + if (!is_dir('/usr/local/freeswitch/storage/fax/receive/')) { + exec("mkdir /usr/local/freeswitch/storage/fax/receive/"); + } //make a backup copy of the default config exec("cp -R /usr/local/freeswitch/conf /usr/local/freeswitch/conf.orig"); |