From 232bb23f88eb3076c82ee04cf038ac402a17e41e Mon Sep 17 00:00:00 2001 From: stellarshenson Date: Fri, 6 Feb 2026 08:54:38 +0100 Subject: [PATCH] updated with .env copy --- extra/traefik-host-based-routing/start.sh | 8 +++++++- extra/traefik-host-based-routing/stop.sh | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/extra/traefik-host-based-routing/start.sh b/extra/traefik-host-based-routing/start.sh index 5182dad..ce98ea5 100755 --- a/extra/traefik-host-based-routing/start.sh +++ b/extra/traefik-host-based-routing/start.sh @@ -13,7 +13,13 @@ REFRESH=false # Default configuration (override via .env) ENABLE_CIFS="${ENABLE_CIFS:-0}" -# Load environment variables if .env exists +# Create .env from example if missing +if [[ ! -f .env ]] && [[ -f .env.example ]]; then + cp .env.example .env + echo "Created .env from .env.example" +fi + +# Load environment variables if [[ -f .env ]]; then source .env fi diff --git a/extra/traefik-host-based-routing/stop.sh b/extra/traefik-host-based-routing/stop.sh index f4a5920..19fead5 100755 --- a/extra/traefik-host-based-routing/stop.sh +++ b/extra/traefik-host-based-routing/stop.sh @@ -8,7 +8,13 @@ cd "$(dirname "$0")" # Default configuration (override via .env) ENABLE_CIFS="${ENABLE_CIFS:-0}" -# Load environment variables if .env exists +# Create .env from example if missing +if [[ ! -f .env ]] && [[ -f .env.example ]]; then + cp .env.example .env + echo "Created .env from .env.example" +fi + +# Load environment variables if [[ -f .env ]]; then source .env fi