updated with .env copy

This commit is contained in:
stellarshenson
2026-02-06 08:54:38 +01:00
parent 1f6110e84f
commit 232bb23f88
2 changed files with 14 additions and 2 deletions

View File

@@ -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

View File

@@ -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