set wordpress address and site address to use https
This commit is contained in:
parent
bb95882366
commit
e3fca3f85d
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue