set wordpress address and site address to use https

This commit is contained in:
Arnaud Lier 2025-01-25 12:25:16 +01:00
parent bb95882366
commit e3fca3f85d

View file

@ -7,6 +7,8 @@ if [ ! -e '/var/www/wordpress/wp-config.php' ]; then
wp config create --dbname="$DB_DB" --dbuser="$DB_USER" --dbpass="$(cat /run/secrets/db_password)" --dbhost=mariadb
wp core install --url="$DOMAIN_NAME" --title="$TITLE" --admin_user="$ADMIN_USER" --admin_email="$ADMIN_EMAIL" \
--admin_password="$(cat /run/secrets/admin_password)"
wp option update siteurl "https://$DOMAIN_NAME"
wp option update home "https://$DOMAIN_NAME"
wp user create bob bob@example.org
fi