This commit is contained in:
Ubuntu
2025-07-07 14:16:38 +00:00
parent 2c7afdec95
commit 95024e208c
4 changed files with 64 additions and 35 deletions
@@ -0,0 +1,15 @@
#!/bin/bash
if [ ! -f ./wp-config.php ]; then
wp core download --allow-root
wp config create --dbname=$SQL_DATABSE --dbuser=$SQL_USER --dbpass=$SQL_PASSWORD --dbhost=mariadb --allow-root
wp core install --url=$DOMAIN_NAME --title="$WP_TITLE" --admin_user=$WP_ADMIN_USER --admin_password=$WP_ADMIN_PASSWORD --admin_email=$WP_ADMIN_EMAIL --allow-root
wp user create $WP_NORMAL_USER $WP_NORMAL_USER_EMAIL --user_pass=$WP_NORMAL_USER_PASSWORD --role=author --allow-root
fi
exec "$@"