Automatic push 4.1.2

This commit is contained in:
chevereto
2024-05-06 17:49:12 +00:00
parent 89d66d15d4
commit f2ef7a981f
50 changed files with 487 additions and 337 deletions

View File

@@ -200,13 +200,14 @@ if ($singleStep || $action === 'extract') {
logger('Chevereto filesystem upgraded');
unlinkIfExists($lockUpgrading);
$safeResult = false;
$command = $rootDir . '/app/bin/legacy -C update';
if (passthruEnabled()) {
logger('Command passthru');
logger('Update command passthru');
$command = $rootDir . '/app/bin/legacy -C update';
$safeResult = passthru($command);
}
if ($safeResult === false) {
logger('Continue with database update');
logger('Continuing with database update at /update');
$return = 'update';
}
if (PHP_SAPI !== 'cli') {
$continueUri = $rootUrl . $return;