Setup/Help
* be more clear that connecting to auth and characters db is conditional * updated some lost references to renamed databases and config options
This commit is contained in:
parent
20f38e1c2b
commit
725686d1cd
5 changed files with 21 additions and 8 deletions
|
|
@ -85,7 +85,7 @@ CLISetup::registerUtility(new class extends UtilityScript
|
|||
{
|
||||
CLI::write();
|
||||
if (!DB::isConnectable(DB_AUTH) || !$this->test())
|
||||
CLI::write('[db] auth server not yet set up.', CLI::LOG_ERROR);
|
||||
CLI::write('[db] auth db not yet set up.', CLI::LOG_ERROR);
|
||||
else if ($realms = DB::Auth()->selectAssoc('SELECT `id` AS "0", `name` AS "1", `icon` AS "2", `timezone` AS "3", `allowedSecurityLevel` AS "4" FROM realmlist'))
|
||||
{
|
||||
$tbl = [['Realm Id', 'Name', 'Type', 'Region', 'GMLevel', 'Status']];
|
||||
|
|
@ -309,15 +309,21 @@ CLISetup::registerUtility(new class extends UtilityScript
|
|||
$buff[] = $dbInfo['prefix'] ? 'pre.: '.$dbInfo['prefix'] : '';
|
||||
$buff[] = $note;
|
||||
}
|
||||
else if ($idx == DB_AUTH)
|
||||
$buff[] = CLI::bold('<optional>');
|
||||
else
|
||||
$buff[] = CLI::bold('<empty>');
|
||||
$buff[] = CLI::bold('<required>');
|
||||
|
||||
return $buff;
|
||||
}
|
||||
|
||||
public function writeCLIHelp() : bool
|
||||
{
|
||||
CLI::write(' Remember to use the correct Realm Id from '.CLI::bold('`logon`.`realmlist`').' when connecting to your characters DB.', -1, false);
|
||||
CLI::write(' Connecting to '.CLI::bold('`auth`').' is optional and only required when using the character profiler tool or using the game accounts for login.', -1, false);
|
||||
CLI::write();
|
||||
CLI::write(' Connecting to '.CLI::bold('`characters`').' is optional and only required when using the character profiler tool.', -1, false);
|
||||
CLI::write(' Remember to use the correct Realm Id from '.CLI::bold('`auth`.`realmlist`').' when connecting to your characters DB.', -1, false);
|
||||
CLI::write();
|
||||
CLI::write(' To remove a db entry edit it and leave all fields empty.', -1, false);
|
||||
CLI::write();
|
||||
CLI::write();
|
||||
|
|
|
|||
|
|
@ -170,8 +170,10 @@ CLISetup::registerUtility(new class extends UtilityScript
|
|||
CLI::write(' usage: php aowow --setup [--locales: --datasrc:] [--step=<step>]', -1, false);
|
||||
CLI::write();
|
||||
CLI::write(' Initially essential connection information are set up and basic connectivity tests run afterwards.', -1, false);
|
||||
CLI::write();
|
||||
CLI::write(' In the main stage dbc and world data is compiled into the database and required sound, image and data files are generated.', -1, false);
|
||||
CLI::write(' This should not require further input and will take about 15-20 minutes, plus 10 minutes per additional locale.', -1, false);
|
||||
CLI::write();
|
||||
CLI::write(' Lastly pending updates are applied and you are prompted to create an administrator account.', -1, false);
|
||||
|
||||
if (($startStep = $this->getSavedStartStep()) !== 0)
|
||||
|
|
|
|||
|
|
@ -111,8 +111,13 @@ CLISetup::registerUtility(new class extends UtilityScript
|
|||
CLI::write();
|
||||
CLI::write(' Checks /setup/sql/updates for new *.sql files and applies them. If required by an applied update, the --sql and --build command are triggered afterwards.', -1, false);
|
||||
CLI::write(' Use this after fetching the latest rev. from Github.', -1, false);
|
||||
CLI::write();
|
||||
CLI::write(' Last Update: '.date(Util::$dateFormatInternal, $this->date).' (Part #'.$this->part.')', -1, false);
|
||||
|
||||
if ($this->date)
|
||||
{
|
||||
CLI::write();
|
||||
CLI::write(' Last Update: '.date(Util::$dateFormatInternal, $this->date).' (Part #'.$this->part.')', -1, false);
|
||||
}
|
||||
|
||||
CLI::write();
|
||||
CLI::write();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue