changed path handling for create_config_lua

thanks moteus for the hint
This commit is contained in:
Matthew Vale
2015-12-03 11:19:09 +00:00
parent 5149307d11
commit cc3f8e9945
2 changed files with 6 additions and 6 deletions
@@ -856,7 +856,7 @@ include "root.php";
}
protected function create_superuser() {
$this->write_progress("\tChecking if superuser exists '" . $this->global_settings->domain_name . "'");
$this->write_progress("\tChecking if superuser exists '" . $this->admin_username . "'");
$sql = "select * from v_users ";
$sql .= "where domain_uuid = '".$this->global_settings->domain_uuid()."' ";
$sql .= "and username = '".$this->admin_username."' ";
@@ -877,7 +877,7 @@ include "root.php";
$this->write_debug($sql);
$this->dbh->exec(check_sql($sql));
}else{
$this->write_progress("\t... creating super user '" . $this->admin_username . "'");
$this->write_progress("\t... creating super user");
//add a user and then add the user to the superadmin group
//prepare the values
$this->admin_uuid = uuid();