From 005d022bc0fec2b2de9ba54c9cedb991bafa4212 Mon Sep 17 00:00:00 2001 From: Stixx Date: Wed, 6 Nov 2024 22:13:48 +0100 Subject: [PATCH] fix: blossom config --- Dockerfile | 2 -- start.sh | 6 ++++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d43c55a..f5ee367 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,6 +47,4 @@ EXPOSE 3000 ENV DEBUG="blossom-server,blossom-server:*" ENV BLOSSOM_CONFIG="data/config.yml" -COPY config.example.yml /app/data/config.yml - CMD [ "/app/start.sh" ] diff --git a/start.sh b/start.sh index 30fcd0a..e8ddbac 100644 --- a/start.sh +++ b/start.sh @@ -1,5 +1,11 @@ #!/bin/bash +echo "==> Copy config in not existing" +if [[ ! -f /app/data/config.yml ]]; then + echo "=> First run, copying config files" + cp config.example.yml /app/data/config.yml +fi + echo "==> Changing ownership" chown -R cloudron:cloudron /app/data