1
0

🏗️」 wip: Added a user to the wp

This commit is contained in:
2025-03-06 09:43:03 +01:00
parent f9759c31fa
commit fdbba6c3a8
4 changed files with 11 additions and 0 deletions

View File

@ -18,5 +18,6 @@ else
sleep 1
wp --allow-root core config --dbname=${WP_DB_NAME} --dbuser=${WP_DB_USER} --dbpass=$(getFileEnv WP_DB_PASS) --dbhost=${WP_DB_HOST} --dbprefix=wp_ --path=${WP_DIR}
wp --allow-root core install --url=https://${WP_URL} --title="${WP_TITLE}" --admin_user=${WP_ADMIN_USER} --admin_password=$(getFileEnv WP_ADMIN_PASS) --admin_email=${WP_ADMIN_EMAIL} --path=${WP_DIR}
wp user create ${WP_USER} ${WP_USER_EMAIL} --role=${WP_USER_ROLE} --user_pass=$(getFileEnv WP_USER_PASS)
wp option update blog_public ${WP_SEARCH_ENGINE_VISIBILITY} --allow-root
fi