aboutsummaryrefslogtreecommitdiffstats
path: root/config/freeswitch/freeswitch.inc
diff options
context:
space:
mode:
Diffstat (limited to 'config/freeswitch/freeswitch.inc')
-rw-r--r--config/freeswitch/freeswitch.inc16
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");