From b1803607c33e65acd5a5174b373e07cae065f93d Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Wed, 9 Apr 2014 05:00:11 +0000 Subject: [PATCH] If the debian package usr share conf directory exists then use it as the source for the copy. --- resources/install.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/resources/install.php b/resources/install.php index 65ae29e3fe..8399ae0c8a 100644 --- a/resources/install.php +++ b/resources/install.php @@ -1273,7 +1273,13 @@ if ($_POST["install_step"] == "3" && count($_POST) > 0 && strlen($_POST["persist clearstatcache(); //copy resources/templates/conf to the freeswitch conf dir - $src_dir = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/resources/templates/conf"; + if (file_exists('/usr/share/fusionpbx/resources/templates/conf')){ + $src_dir = "/usr/share/fusionpbx/resources/templates/conf"; + } + else { + + $src_dir = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/resources/templates/conf"; + } $dst_dir = $switch_conf_dir; if (!file_exists($dst_dir)) { if (is_readable($dst_dir)) {