From c9d1a1229927929b3b998e048c80fb8062e76538 Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Tue, 14 Nov 2023 20:31:39 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Copy=20`default.json`=20if=20it?= =?UTF-8?q?=20doesn't=20exist=20(#1636)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/run.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/run.sh b/scripts/run.sh index 67c5cb508..ba017d05e 100644 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -8,6 +8,9 @@ cd ./migrate; yarn db:migrate & PID=$! # Wait for migration to finish wait $PID +## If 'default.json' does not exist in '/app/data/configs', we copy it from '/app/data/default.json' +cp -n /app/data/default.json /app/data/configs/default.json + echo "Starting production server..." node /app/server.js & PID=$!