This commit is contained in:
Ubuntu
2025-07-07 20:18:25 +00:00
parent 95024e208c
commit 2228a68ff3
25 changed files with 207 additions and 413 deletions
@@ -1,15 +0,0 @@
#!/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 "$@"