From 0a464f9d28031a2fc8eb934f43fe9d332cfd96ab Mon Sep 17 00:00:00 2001 From: otbutz Date: Tue, 10 Jan 2023 17:04:35 +0100 Subject: [PATCH] fix(nginx): Switch to sh (#1282) * Switch to sh * Fix entrypoint --- nginx/Dockerfile | 2 +- nginx/start.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nginx/Dockerfile b/nginx/Dockerfile index 2b198fb1ab..e6b62452ba 100644 --- a/nginx/Dockerfile +++ b/nginx/Dockerfile @@ -8,4 +8,4 @@ COPY start.sh /start.sh STOPSIGNAL SIGQUIT -CMD /start.sh +ENTRYPOINT ["start.sh"] diff --git a/nginx/start.sh b/nginx/start.sh index 911eab2b1d..8fd0437525 100755 --- a/nginx/start.sh +++ b/nginx/start.sh @@ -1,12 +1,12 @@ -#! /bin/bash +#! /bin/sh set -e -export IMMICH_WEB_URL=${IMMICH_WEB_URL:-http://immich-web:3000} +export IMMICH_WEB_URL="${IMMICH_WEB_URL:-http://immich-web:3000}" IMMICH_WEB_SCHEME=$(echo "$IMMICH_WEB_URL" | grep -Eo '^https?://' || echo "http://") export IMMICH_WEB_SCHEME IMMICH_WEB_HOST=$(echo "$IMMICH_WEB_URL" | cut -d '/' -f 3) export IMMICH_WEB_HOST -export IMMICH_SERVER_URL=${IMMICH_SERVER_URL:-http://immich-server:3001} +export IMMICH_SERVER_URL="${IMMICH_SERVER_URL:-http://immich-server:3001}" IMMICH_SERVER_SCHEME=$(echo "$IMMICH_WEB_URL" | grep -Eo '^https?://' || echo "http://") export IMMICH_SERVER_SCHEME IMMICH_SERVER_HOST=$(echo "$IMMICH_SERVER_URL" | cut -d '/' -f 3)