Procházet zdrojové kódy

if the debian package scripts directory exists then use it for the source

Mark Crane před 11 roky
rodič
revize
33059eb023
2 změnil soubory, kde provedl 7 přidání a 2 odebrání
  1. 6 1
      resources/classes/install.php
  2. 1 1
      root.php

+ 6 - 1
resources/classes/install.php

@@ -116,7 +116,12 @@ include "root.php";
 		function copy_scripts() {
 			clearstatcache();
 			if (file_exists($this->switch_scripts_dir)) {
-				$src_dir = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/resources/install/scripts';
+				if (file_exists('/usr/share/fusionpbx/resources/install/scripts')){
+					$src_dir = '/usr/share/fusionpbx/resources/install/scripts';
+				}
+				else {
+					$src_dir = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/resources/install/scripts';
+				}
 				$dst_dir = $this->switch_scripts_dir;
 				if (is_readable($this->switch_scripts_dir)) {
 					$this->recursive_copy($src_dir, $dst_dir);

+ 1 - 1
root.php

@@ -1,7 +1,7 @@
 <?php
 /*
 	FusionPBX
-	Version: MPL 1.1
+	Version: MPL 1.1s
 
 	The contents of this file are subject to the Mozilla Public License Version
 	1.1 (the "License"); you may not use this file except in compliance with