mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fix: propagate isUpgrade flag from Upgrade to Install for CLI path
Install::action() hardcoded isUpgrade=false, so the CLI upgrade path never rewrote compose/env files. Added a protected property that Upgrade sets before calling parent::action(). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
d4c9af2eb2
commit
ef0954cdda
@@ -33,6 +33,7 @@ class Install extends Action
|
||||
private const string APPWRITE_API_URL = 'http://appwrite';
|
||||
private const string GROWTH_API_URL = 'https://growth.appwrite.io/v1';
|
||||
|
||||
protected bool $isUpgrade = false;
|
||||
protected string $hostPath = '';
|
||||
protected ?bool $isLocalInstall = null;
|
||||
protected ?array $installerConfig = null;
|
||||
@@ -66,7 +67,7 @@ class Install extends Action
|
||||
bool $noStart,
|
||||
string $database
|
||||
): void {
|
||||
$isUpgrade = false;
|
||||
$isUpgrade = $this->isUpgrade;
|
||||
$defaultHttpPort = '80';
|
||||
$defaultHttpsPort = '443';
|
||||
$config = Config::getParam('variables');
|
||||
|
||||
@@ -42,6 +42,7 @@ class Upgrade extends Install
|
||||
bool $noStart,
|
||||
string $database
|
||||
): void {
|
||||
$this->isUpgrade = true;
|
||||
$isLocalInstall = $this->isLocalInstall();
|
||||
$this->applyLocalPaths($isLocalInstall, true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user