From 9b2f5eec606d01e99560ad6f1fb9d1139340871c Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Wed, 15 May 2024 23:08:24 -0300 Subject: [PATCH] Allow customising username to reset password of --- .env.sample | 5 ++++- makefile | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.env.sample b/.env.sample index efc2c6d..28ed909 100644 --- a/.env.sample +++ b/.env.sample @@ -1,7 +1,10 @@ ############################################################################## # REQUIRED SETTINGS (you will need these) # ############################################################################## - + +# What username should `set_local_password` operate on? +USERNAME=admin + ############################################################################## # COMMON SETTINGS (you may need these) # ############################################################################## diff --git a/makefile b/makefile index 077e3f8..f46eb40 100644 --- a/makefile +++ b/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' 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