chore(scripts): handle a missing coolify-realtime container in the backup restore VM script

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Andras Bacsai
2026-10-02 16:01:25 +02:00
co-authored by Claude Opus 5.5
parent 8106cb7cfa
commit 5e1e199ad4
+3 -1
View File
@@ -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