fixed first instance setup miracle
This commit is contained in:
parent
98929707ae
commit
d3cc5984e5
@ -111,7 +111,7 @@ InstanceHandler::InstanceHandler(SqlDataManager *sql) : sql(sql) {
|
|||||||
this->groupManager = std::make_shared<GroupManager>(nullptr, this->getSql());
|
this->groupManager = std::make_shared<GroupManager>(nullptr, this->getSql());
|
||||||
this->groupManager->loadGroupFormDatabase();
|
this->groupManager->loadGroupFormDatabase();
|
||||||
|
|
||||||
if (this->groupManager->availableServerGroups(false).empty()){
|
if (this->groupManager->availableServerGroups(false).empty()) {
|
||||||
if(!this->setupDefaultGroups()){
|
if(!this->setupDefaultGroups()){
|
||||||
logCritical(LOG_INSTANCE, "Could not setup server instance! Stopping...");
|
logCritical(LOG_INSTANCE, "Could not setup server instance! Stopping...");
|
||||||
mainThreadActive = false;
|
mainThreadActive = false;
|
||||||
|
@ -141,6 +141,7 @@ bool InstanceHandler::setupDefaultGroups() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this->save_group_permissions();
|
||||||
this->getSql()->pool->threads()->wait_for(); //Wait for all permissions to flush
|
this->getSql()->pool->threads()->wait_for(); //Wait for all permissions to flush
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user