mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Use the argv[1] only if it is set.
This commit is contained in:
@@ -54,10 +54,14 @@
|
||||
//get the command line arguments
|
||||
if(defined('STDIN')) {
|
||||
//$application_name = $argv[0];
|
||||
$upgrade_type = $argv[1];
|
||||
//echo $upgrade_type."\n";
|
||||
if (isset($argv[1])) {
|
||||
$upgrade_type = $argv[1];
|
||||
}
|
||||
}
|
||||
|
||||
//show the upgrade type
|
||||
//echo $upgrade_type."\n";
|
||||
|
||||
//run all app_defaults.php files
|
||||
if ($upgrade_type == 'domains') {
|
||||
require_once "resources/classes/config.php";
|
||||
|
||||
Reference in New Issue
Block a user