From: Tobias Diekershoff Date: Wed, 23 Jun 2021 16:05:39 +0000 (+0200) Subject: console autoinstall used parameter U twice X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cfc08cbc115a79b7c2128cbaade290244306a1c6;p=friendica.git console autoinstall used parameter U twice The parameter "-U" was used twice for the database user and for the URL. As all other database parameters are using the lowercase letter for the parameter, this was adopted for the dbuser as well. --- diff --git a/src/Console/AutomaticInstallation.php b/src/Console/AutomaticInstallation.php index b3addbc288..72128c1270 100644 --- a/src/Console/AutomaticInstallation.php +++ b/src/Console/AutomaticInstallation.php @@ -65,7 +65,7 @@ Options -H|--dbhost The host of the mysql/mariadb database (env MYSQL_HOST) -p|--dbport The port of the mysql/mariadb database (env MYSQL_PORT) -d|--dbdata The name of the mysql/mariadb database (env MYSQL_DATABASE) - -U|--dbuser The username of the mysql/mariadb database login (env MYSQL_USER or MYSQL_USERNAME) + -u|--dbuser The username of the mysql/mariadb database login (env MYSQL_USER or MYSQL_USERNAME) -P|--dbpass The password of the mysql/mariadb database login (env MYSQL_PASSWORD) -U|--url The full base URL of Friendica - f.e. 'https://friendica.local/sub' (env FRIENDICA_URL) -B|--phppath The path of the PHP binary (env FRIENDICA_PHP_PATH) @@ -162,7 +162,7 @@ HELP; $this->getOption(['d', 'dbdata'], ($save_db) ? getenv('MYSQL_DATABASE') : '')); $configCache->set('database', 'username', - $this->getOption(['U', 'dbuser'], + $this->getOption(['u', 'dbuser'], ($save_db) ? getenv('MYSQL_USER') . getenv('MYSQL_USERNAME') : '')); $configCache->set('database', 'password', $this->getOption(['P', 'dbpass'],