From 0cb7952020c5852a74ec6fbc825bbfcd75b9aa64 Mon Sep 17 00:00:00 2001 From: xZero707 Date: Fri, 1 Nov 2024 23:21:03 +0100 Subject: [PATCH] Restore wp-generate-salt alias --- src/wp-utils/wp-generate-salt | 6 ++++++ src/wp-utils/wp-generate-salts | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100755 src/wp-utils/wp-generate-salt diff --git a/src/wp-utils/wp-generate-salt b/src/wp-utils/wp-generate-salt new file mode 100755 index 0000000..41543e9 --- /dev/null +++ b/src/wp-utils/wp-generate-salt @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +main() { + src/utils/random-string "${@}" +} +main "${@}" diff --git a/src/wp-utils/wp-generate-salts b/src/wp-utils/wp-generate-salts index 0ff88d5..5ea7d59 100755 --- a/src/wp-utils/wp-generate-salts +++ b/src/wp-utils/wp-generate-salts @@ -7,7 +7,7 @@ main() { mkdir -p "${secretsDir}" for key in "${keys[@]}"; do - value="$(src/utils/random-string 64)" + value="$(src/wp-utils/wp-generate-salt 64)" secretName="wordpress_${key,,}" secretFile="${secretsDir}/${secretName}"