From 2ffa3ddbd1c6f4be11858f40b4ab90a463db6e7b Mon Sep 17 00:00:00 2001 From: jamesread Date: Sat, 14 Sep 2024 20:23:10 +0100 Subject: [PATCH] docker: Copy config, instead of symlink. This means config is a standard file, and changes wont affect running containers. --- var/docker/entrypoint.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/var/docker/entrypoint.sh b/var/docker/entrypoint.sh index f79c8f42..526ca6f3 100755 --- a/var/docker/entrypoint.sh +++ b/var/docker/entrypoint.sh @@ -1,21 +1,23 @@ #!/bin/bash +set -o xtrace + if [[ "$SKIP_CONFIG_CHECK" != "true" ]]; then - echo "symlinking /config/.env into /app/.env" + echo "Entrypoint: Copying /config/postiz.env into /app/.env" if [ ! -f /config/.env ]; then - echo "ERROR: No .env file found in /config/.env" + echo "Entrypoint: WARNING: No .env file found in /config/postiz.env" fi - ln -sf /config/postiz.env /app/.env + cp -vf /config/postiz.env /app/.env fi if [[ "$POSTIZ_APPS" -eq "" ]]; then - echo "POSTIZ_APPS is not set, starting everything!" + echo "Entrypoint: POSTIZ_APPS is not set, starting everything!" POSTIZ_APPS="frontend workers cron backend" fi -echo "Running database migrations" +echo "Entrypoint: Running database migrations" npm run prisma-db-push mkdir -p /etc/supervisor.d/