This commit is contained in:
Andras Bacsai
2023-07-15 09:50:29 +02:00
parent 9ebfc6646e
commit 1bba747ce5
2 changed files with 15 additions and 4 deletions

View File

@@ -163,7 +163,7 @@ export async function update(request: FastifyRequest<Update>) {
await executeCommand({ command: `docker pull ${image}` });
}
await executeCommand({ shell: true, command: `env | grep COOLIFY > .env` });
await executeCommand({ shell: true, command: `ls .env || env | grep COOLIFY > .env` });
await executeCommand({
command: `sed -i '/COOLIFY_AUTO_UPDATE=/cCOOLIFY_AUTO_UPDATE=${isAutoUpdateEnabled}' .env`
});