From eee44e611b71c3095c8e6c622b85e81eae68e1bc Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Tue, 1 Nov 2022 14:21:33 -0400 Subject: [PATCH] Only create blank config if it doesn't exist --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 9b73c6b..661b68b 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,9 +4,9 @@ echo 'Entrypoint script' cd /usr/src/app # blank config, use defaults -cat < config.json +test -e config.json || cat < config.json { } EOF -node dist/src/index.js \ No newline at end of file +node dist/src/index.js