If the $db_type variable has no value then don't write the config.lua script.

This commit is contained in:
Mark Crane 2013-10-22 03:18:28 +00:00
parent a61860f150
commit 71cf5a3521
1 changed files with 68 additions and 66 deletions

View File

@ -98,6 +98,7 @@ if ($domains_processed == 1) {
}
//config.lua
if (strlen($db_type) > 0) {
if (is_dir("/etc/fusionpbx")){
$config = "/etc/fusionpbx/config.lua";
} elseif (is_dir("/usr/local/etc/fusionpbx")){
@ -169,5 +170,6 @@ if ($domains_processed == 1) {
unset($tmp);
fclose($fout);
}
}
}
?>