From e2d6b5bf647362493bc9239f8a987355467826ee Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 11 Feb 2022 09:13:51 +0100 Subject: [PATCH] fix: version --- src/routes/update.json.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/update.json.ts b/src/routes/update.json.ts index 51069c182..1ef49414c 100644 --- a/src/routes/update.json.ts +++ b/src/routes/update.json.ts @@ -50,7 +50,7 @@ export const post: RequestHandler = async (event) => { try { if (!dev) { await asyncExecShell( - `docker run --rm -tid --env-file .env -v /var/run/docker.sock:/var/run/docker.sock -v coolify-db coollabsio/coolify:latest /bin/sh -c "env | grep COOLIFY > .env && docker stop -t 0 coolify && docker stop -t 0 coolify-redis && export TAG=${latestVersion} && docker compose up -d --force-recreate"` + `docker run --rm -tid --env-file .env -v /var/run/docker.sock:/var/run/docker.sock -v coolify-db coollabsio/coolify:${latestVersion} /bin/sh -c "env | grep COOLIFY > .env && echo 'TAG=${latestVersion}' >> .env && docker stop -t 0 coolify && docker stop -t 0 coolify-redis && docker compose up -d --force-recreate"` ); return { status: 200,