From 8cd87551ebe2b4d8a49a4b9d8320fd5fa43113d2 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Thu, 18 Jul 2013 23:50:39 +0000 Subject: [PATCH] On Debian or Ubuntu the /etc/init.d seems to require /etc/freeswitch this causes a problem source compiled systems changing the directory to detect if its a package install to /etc/freeswitch/dialplan. --- resources/install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/install.php b/resources/install.php index 0002ebf9c9..c1e969fe98 100644 --- a/resources/install.php +++ b/resources/install.php @@ -148,7 +148,7 @@ require_once "resources/functions.php"; if (file_exists('/usr/bin')) { $switch_bin_dir = '/usr/bin'; //freeswitch bin directory } - if (file_exists('/etc/freeswitch')) { + if (file_exists('/etc/freeswitch/dialplan')) { $switch_conf_dir = '/etc/freeswitch'; $switch_extensions_dir = $switch_conf_dir.'/directory'; $switch_gateways_dir = $switch_conf_dir.'/sip_profiles';