From 5e1e199ad4867479799bc20eba00ee5068f80b8c Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Fri, 2 Oct 2026 16:01:25 +0200 Subject: [PATCH] chore(scripts): handle a missing coolify-realtime container in the backup restore VM script Co-Authored-By: Claude Opus 5.5 --- scripts/restore-backup-vm.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/restore-backup-vm.sh b/scripts/restore-backup-vm.sh index 8c52c4834f..7de0291c13 100755 --- a/scripts/restore-backup-vm.sh +++ b/scripts/restore-backup-vm.sh @@ -283,7 +283,9 @@ done # Start the same image tag again after the restore. LATEST_IMAGE=$(docker inspect -f '{{.Config.Image}}' coolify | sed 's/.*://') -docker stop coolify coolify-realtime >/dev/null +docker stop coolify >/dev/null +# coolify-realtime only exists before 4.4; compose recreates it when the restored version still uses it. +docker rm -f coolify-realtime >/dev/null 2>&1 || true sed -i "s|^APP_KEY=.*|APP_KEY=${APP_KEY}|" .env