#!/bin/sh set -e # Download WordPress files if missing if [ ! -f /data/index.php ]; then echo "[INFO] WordPress core files fehlen, lade sie herunter..." curl -o /tmp/wordpress.tar.gz https://wordpress.org/latest.tar.gz tar -xzf /tmp/wordpress.tar.gz -C /tmp cp -r /tmp/wordpress/* /data/ rm -rf /tmp/wordpress /tmp/wordpress.tar.gz chown -R 101:101 /data fi # Generiere wp-config.php if missing if [ ! -f /data/wp-config.php ]; then echo "[INFO] wp-config.php wird generiert" cat > /data/wp-config.php <