From 5a68f9abc69a25167dc5ffcbbc205b9f4bf79d7d Mon Sep 17 00:00:00 2001 From: mcrane Date: Thu, 11 Jun 2009 12:13:18 -0600 Subject: FreeSWITCH move folder creation for FAX until after the parent folder is extracted from the freeswitch.tgz file. --- config/freeswitch/freeswitch.inc | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'config/freeswitch') 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"); -- cgit v1.2.3