Actually truly really NOW actually for real really truly now actually for real genuinely really fix docker compose in updater

This commit is contained in:
Peter Smit
2025-01-17 15:19:25 +01:00
parent d15b6a176b
commit fca17a3dd7
10 changed files with 23 additions and 5 deletions

View File

@@ -63,12 +63,15 @@ if (json_last_error() !== JSON_ERROR_NONE) {
exit();
}
// success, log something without error_log
error_log('SUCCESS - ' . $decoded['ref']);
error_log('SUCCESS');
chdir($docker_config_dir);
error_log('Pulling latest changes');
exec('git pull');
exec('docker compose up -d --build --quiet-pull');
error_log('Building and starting containers');
exec('docker compose --profile autoupdate up -d --build --quiet-pull');
// send return code and text message
http_response_code(200);