update: send mock/default values from backend.

update: update task callback.
This commit is contained in:
Darshan
2026-01-26 17:22:02 +05:30
parent 289c3e233e
commit fbba7166ae
3 changed files with 8 additions and 6 deletions
@@ -558,6 +558,11 @@ class HttpHandler
$isMock = $this->config->isMock();
$isLocalInstall = $this->config->isLocal();
$defaultEmailCertificates = $vars['_APP_EMAIL_CERTIFICATES']['default'] ?? '';
if ($isMock && empty($defaultEmailCertificates)) {
$defaultEmailCertificates = 'walterobrien@example.com';
}
include $this->paths['views'] . '/installer.phtml';
return true;
}
+2 -2
View File
@@ -29,10 +29,10 @@ class Upgrade extends Install
->param('image', 'appwrite', new Text(0), 'Main appwrite docker image', true)
->param('interactive', 'Y', new Text(1), 'Run an interactive session', true)
->param('no-start', false, new Boolean(true), 'Run an interactive session', true)
->callback($this->action(...));
->callback($this->upgradeAction(...));
}
public function action(string $httpPort, string $httpsPort, string $organization, string $image, string $interactive, bool $noStart, bool $isUpgrade = false): void
public function upgradeAction(string $httpPort, string $httpsPort, string $organization, string $image, string $interactive, bool $noStart): void
{
$isLocalInstall = $this->isLocalInstall();
$this->applyLocalPaths($isLocalInstall, true);