Skip to content

Commit d0739a3

Browse files
committed
[FIX] CLI installer.
1 parent 16d3c38 commit d0739a3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

install/cli-install.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,15 @@ public function ask(string $question, ?string $default = null): string
148148

149149
public function initEvo()
150150
{
151-
include EVO_BASE_PATH . 'index.php';
151+
include '../index.php';
152152
$this->evo = evo();
153153
$this->version = evo()->getVersionData()['full_appname'] ?? 'almost current version';
154154
}
155155

156156
public function update()
157157
{
158158
$this->initEvo();
159-
Console::call('migrate', ['--path' => EVO_BASE_PATH . 'install/stubs/migrations', '--force' => true]);
159+
Console::call('migrate', ['--path' => '../install/stubs/migrations', '--force' => true]);
160160
seed('update');
161161
echo 'Evolution CMS updated!' . "\n";
162162
$this->checkRemoveInstall();
@@ -492,7 +492,7 @@ public function writeConfig()
492492
}
493493
break;
494494
}
495-
$configString = file_get_contents(EVO_BASE_PATH . 'stubs/files/config/database/connections/default.tpl');
495+
$configString = file_get_contents('stubs/files/config/database/connections/default.tpl');
496496
$configString = parse($configString, $confph);
497497

498498
$filename = EVO_CORE_PATH . 'config/database/connections/default.php';
@@ -846,4 +846,4 @@ public function removeInstall()
846846
}
847847
}
848848

849-
exit();
849+
exit();

0 commit comments

Comments
 (0)