Add a message variable.

This commit is contained in:
FusionPBX
2022-10-22 19:21:48 -06:00
committed by GitHub
parent bfe557edc3
commit d87ecbb3f2

View File

@@ -8,6 +8,7 @@ if (!class_exists('install')) {
*/
private $app_name;
private $app_uuid;
public $message;
public $database_host;
public $database_port;
public $database_name;
@@ -71,11 +72,13 @@ if (!class_exists('install')) {
//end the script if the config path is not set
if (!isset($config_path)) {
$this->message = "Config file path not found\n";
return false;
}
//config directory is not writable
if (!is_writable($config_path)) {
$this->message = "Check permissions ".$config_path." must be writable.\n";
return false;
}