Allow customising username to reset password of
This commit is contained in:
parent
8870e4b837
commit
9b2f5eec60
@ -1,7 +1,10 @@
|
|||||||
##############################################################################
|
##############################################################################
|
||||||
# REQUIRED SETTINGS (you will need these) #
|
# REQUIRED SETTINGS (you will need these) #
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
|
# What username should `set_local_password` operate on?
|
||||||
|
USERNAME=admin
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# COMMON SETTINGS (you may need these) #
|
# COMMON SETTINGS (you may need these) #
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
2
makefile
2
makefile
@ -123,7 +123,7 @@ fix_url:
|
|||||||
$(_DOCKER_COMPOSE) exec -u user wordpress wp --url=https://$(SITE_URL) search-replace --all-tables-with-prefix 'https://$(SITE_URL)' 'http://$(PROJECT_NAME).localhost'
|
$(_DOCKER_COMPOSE) exec -u user wordpress wp --url=https://$(SITE_URL) search-replace --all-tables-with-prefix 'https://$(SITE_URL)' 'http://$(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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user