<?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
*
$this->dba = $dba;
}
- protected function doExecute()
+ protected function doExecute(): int
{
// Initialise the app
$this->out("Initializing setup...");
$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);
$installer->resetChecks();
- if (!$installer->installDatabase($basePathConf)) {
+ if (!$installer->installDatabase()) {
$errorMessage = $this->extractErrors($installer->getChecks());
throw new RuntimeException($errorMessage);
}