Fix: Unix line endings (LF) für entrypoint script

CRLF verursachte 'not found' Error

🤖 Generated with Claude Code
This commit is contained in:
2025-12-17 13:09:16 +01:00
parent 98258c5fd5
commit 6ef56731a9

View File

@@ -1,27 +1,27 @@
#!/bin/sh #!/bin/sh
# Erstellt .env aus Docker Environment Variables # Erstellt .env aus Docker Environment Variables
# Numerisches Prefix 10- = frueh ausfuehren # Numerisches Prefix 10- = frueh ausfuehren
ENV_FILE="/var/www/html/.env" ENV_FILE="/var/www/html/.env"
if [ ! -f "$ENV_FILE" ]; then if [ ! -f "$ENV_FILE" ]; then
cat > "$ENV_FILE" << EOF cat > "$ENV_FILE" << EOF
WP_ENV=${WP_ENV:-production} WP_ENV=${WP_ENV:-production}
WP_HOME=${WP_HOME} WP_HOME=${WP_HOME}
WP_SITEURL=${WP_SITEURL} WP_SITEURL=${WP_SITEURL}
DB_NAME=${DB_NAME} DB_NAME=${DB_NAME}
DB_USER=${DB_USER} DB_USER=${DB_USER}
DB_PASSWORD=${DB_PASSWORD} DB_PASSWORD=${DB_PASSWORD}
DB_HOST=${DB_HOST} DB_HOST=${DB_HOST}
WP_REDIS_HOST=${WP_REDIS_HOST:-redis} WP_REDIS_HOST=${WP_REDIS_HOST:-redis}
AUTH_KEY=${AUTH_KEY} AUTH_KEY=${AUTH_KEY}
SECURE_AUTH_KEY=${SECURE_AUTH_KEY} SECURE_AUTH_KEY=${SECURE_AUTH_KEY}
LOGGED_IN_KEY=${LOGGED_IN_KEY} LOGGED_IN_KEY=${LOGGED_IN_KEY}
NONCE_KEY=${NONCE_KEY} NONCE_KEY=${NONCE_KEY}
AUTH_SALT=${AUTH_SALT} AUTH_SALT=${AUTH_SALT}
SECURE_AUTH_SALT=${SECURE_AUTH_SALT} SECURE_AUTH_SALT=${SECURE_AUTH_SALT}
LOGGED_IN_SALT=${LOGGED_IN_SALT} LOGGED_IN_SALT=${LOGGED_IN_SALT}
NONCE_SALT=${NONCE_SALT} NONCE_SALT=${NONCE_SALT}
EOF EOF
echo "[entrypoint] .env created" echo "[entrypoint] .env created"
fi fi