「🏗️」 wip: Added a user to the wp
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user