From d0121930c05bc6a536e0ef6c56137d133f833f92 Mon Sep 17 00:00:00 2001 From: Yurii Pavlov Date: Wed, 24 Jul 2024 19:24:54 +0200 Subject: [PATCH] update wp admin password generation --- sh/env/.env.secret.template | 2 +- sh/wp-cli/core-install.sh | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/sh/env/.env.secret.template b/sh/env/.env.secret.template index b0a621e..ddd279c 100644 --- a/sh/env/.env.secret.template +++ b/sh/env/.env.secret.template @@ -33,7 +33,7 @@ WP_DB_CHARSET=utf8mb4 # Default admin for WorPress installation WP_ADMIN_USER=admin WP_ADMIN_EMAIL=admin@example.com -#WP_ADMIN_PASSWORD will be generated in installation script +WP_ADMIN_PASSWORD=generate_this_pass # Authentication unique keys and salts WP_AUTH_KEY='generate_key' diff --git a/sh/wp-cli/core-install.sh b/sh/wp-cli/core-install.sh index de56d79..dfb0fd9 100644 --- a/sh/wp-cli/core-install.sh +++ b/sh/wp-cli/core-install.sh @@ -18,9 +18,7 @@ if [ -z "$WP_HOME" ]; then echo -e "${LIGHTRED}[Error]${NOCOLOR} WP_HOME is not defined in wp-config.php"; exit 1; fi -WP_ADMIN_PASSWORD=$(tr -dc 'A-Za-z0-9_'