From d012cddf78d3055c8c49af7a7287117940f2c034 Mon Sep 17 00:00:00 2001 From: shadlaws Date: Tue, 26 Feb 2013 13:36:31 +0100 Subject: #2020 - Add CLI install argument to set admin password. This isn't too useful for end users, but would be really useful for developers that install Gallery3 over and over again... --- installer/cli.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'installer/cli.php') diff --git a/installer/cli.php b/installer/cli.php index f5a9e260..b31405f1 100644 --- a/installer/cli.php +++ b/installer/cli.php @@ -90,6 +90,7 @@ function parse_cli_params() { "password" => "", "dbname" => "gallery3", "prefix" => "", + "g3_password" => "", "type" => function_exists("mysqli_set_charset") ? "mysqli" : "mysql"); $argv = $_SERVER["argv"]; @@ -110,6 +111,9 @@ function parse_cli_params() { case "-x": $config["prefix"] = $argv[++$i]; break; + case "-g3p": + $config["g3_password"] = $argv[++$i]; + break; } } -- cgit v1.2.3