Add USERNAME setting for set_local_password

[ci skip]
This commit is contained in:
3wc 2024-06-10 20:53:15 -05:00
parent 2b4a4e9793
commit 5d86b7a842
2 changed files with 4 additions and 1 deletions

View File

@ -28,6 +28,9 @@ WORDPRESS_DEBUG=1
# INFINITE NERD DEPTH SETTINGS (if you're changing these, good luck!) # # INFINITE NERD DEPTH SETTINGS (if you're changing these, good luck!) #
############################################################################## ##############################################################################
# Wordpress username (for `set_local_password`)
USERNAME=autonomic
# Docker container names, probably just needs to be set once per project # Docker container names, probably just needs to be set once per project
PROJECT_NAME=mont58 PROJECT_NAME=mont58

View File

@ -123,7 +123,7 @@ fix_url:
$(_DOCKER_COMPOSE) exec -u user wordpress wp --url=https://$(SITE_URL) search-replace --all-tables-with-prefix '$(SITE_URL)' '$(PROJECT_NAME).localhost' $(_DOCKER_COMPOSE) exec -u user wordpress wp --url=https://$(SITE_URL) search-replace --all-tables-with-prefix '$(SITE_URL)' '$(PROJECT_NAME).localhost'
set_local_password: set_local_password:
$(_DOCKER_COMPOSE) exec -u user wordpress wp user update admin --user_pass=password $(_DOCKER_COMPOSE) exec -u user wordpress wp user update $(USERNAME) --user_pass=password
db_pull: db_fetch db_load fix_url db_pull: db_fetch db_load fix_url