inception/srcs/services/wordpress/bash.sh
2023-09-18 13:56:58 +02:00

12 lines
450 B
Bash

wp config create --dbname=wordpress --dbuser="$SQL_USER" \
--dbpass="$SQL_PASSWORD" --dbhost=mariadb --force
wp core is-installed || wp core install --url=erey-bet.42.fr --title="BozoLand" --admin_user="$WP_ADMIN" \
--admin_password="$WP_ADMIN_PASSWORD" --admin_email="$WP_ADMIN"@mail.org --skip-email
wp user create "$WP_USER" "$WP_USER"@mail.org --user_pass="$WP_USER_PASSWORD"
wp theme install twentytwentytwo --activate
exec php-fpm81 -F