indy-wp/entrypoint-theme.sh

23 lines
552 B
Bash
Raw Normal View History

#!/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
# ---- Releasepage 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 IndyWP 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