Add USERNAME setting for set_local_password
[ci skip]
This commit is contained in:
parent
2b4a4e9793
commit
5d86b7a842
@ -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
|
||||||
|
|
||||||
|
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 '$(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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user