#!/usr/bin/env bash set -e while [ ! -f /var/www/html/wp-config.php ]; do echo "⏳ Waiting for WordPress core to be ready..." sleep 2 done # ---- Release‑page URL (no hyphen in file name) ---- THEME_URL="https://github.com/RadioParalelo/indy-wp-theme/releases/download/v1.0.0/indywp.zip" echo "🚀 Installing the Indy‑WP theme..." su www-data -s /bin/bash -c "\ wp theme install $THEME_URL \ --activate \ --allow-root \ --skip-themes \ --force \ --path=/var/www/html \ " exec docker-entrypoint.sh apache2-foreground