]> git.mxchange.org Git - friendica.git/blobdiff - src/Console/AutomaticInstallation.php
Use ISO-639-1 for the language detection
[friendica.git] / src / Console / AutomaticInstallation.php
index ca25d71a6f59e6c1f6f6eb8b6a39f51ea7392b57..33b6f8303fa05498e2f114e2665079c0b7ee2d9b 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -95,7 +95,7 @@ Examples
        bin/console autoinstall --savedb
                Installs Friendica with environment variables and saves them to the 'config/local.config.php' file
 
-       bin/console autoinstall -H localhost -p 3365 -u user -P passwort1234 -d friendica -U https://friendica.fqdn
+       bin/console autoinstall -H localhost -p 3365 -u user -P password1234 -d friendica -U https://friendica.fqdn
                Installs Friendica with a local mysql database with credentials
 HELP;
        }
@@ -110,7 +110,7 @@ HELP;
                $this->dba         = $dba;
        }
 
-       protected function doExecute()
+       protected function doExecute(): int
        {
                // Initialise the app
                $this->out("Initializing setup...");
@@ -199,8 +199,7 @@ HELP;
                                $this->out('The Friendica URL has to be set during CLI installation.');
                                return 1;
                        } else {
-                               $baseUrl = new BaseURL($this->config, []);
-                               $baseUrl->saveByURL($url);
+                               $configCache->set('system', 'url', $url);
                        }
 
                        $installer->createConfig($configCache);