feat(install): add runMigrations
Some checks are pending
/ test (push) Waiting to run

This commit is contained in:
Florian Schmitt 2025-01-24 15:32:12 +03:00
parent 5571276a19
commit 40d3d22229
2 changed files with 9 additions and 2 deletions

View file

@ -347,11 +347,17 @@ function upgradeWiki($srcDir, $destDir)
$output .= 'File not found "' . $f . '"' . "\n";
}
}
runMigrations($sudo, $destDir);
$output .= '==== End Update to latest sources ' . $bars;
$output .= '== End update wiki in path: ' . $destDir . ' ' . $bars;
return $output;
}
function runMigrations($sudo, $destDir)
{
exec('pushd '.$destDir.' && '.$sudo.' ./yeswicli migrate && popd');
}
function copyYesWikiFiles($domain, $user, $dbUser, $herseUser = null, $hersePass = null, $nossl = null)
{
$tmpFile = '/tmp/yeswiki.zip';
@ -368,6 +374,7 @@ function copyYesWikiFiles($domain, $user, $dbUser, $herseUser = null, $hersePass
exec($sudo . 'rm -rf ' . $destDir . '/doryphore');
unlink($tmpFile);
createWakkaConfig($domain, $user, $dbUser);
runMigrations($sudo, $destDir);
return;
}