fix(updater): pushd not available in sh
Some checks are pending
/ test (push) Waiting to run

This commit is contained in:
Florian Schmitt 2025-03-25 22:21:34 +03:00
parent a0000f8768
commit 9760321d97

View file

@ -372,10 +372,10 @@ function cli($cmd)
function runUpgrades($sudo, $destDir) function runUpgrades($sudo, $destDir)
{ {
cli('pushd '.$destDir); $startDir = getcwd();
cli($sudo.' ./yeswicli upgrade'); cli($sudo.' ./yeswicli upgrade');
cli($sudo.' ./yeswicli migrate'); cli($sudo.' ./yeswicli migrate');
cli('popd'); chdir($startDir);
} }
function copyYesWikiFiles($domain, $user, $dbUser, $herseUser = null, $hersePass = null, $nossl = null) function copyYesWikiFiles($domain, $user, $dbUser, $herseUser = null, $hersePass = null, $nossl = null)