indy-wp/entrypoint-theme.sh

23 lines
552 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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