Restore wp-generate-salt alias

This commit is contained in:
Aleksandar Puharic 2024-11-01 23:21:03 +01:00
parent c692812e24
commit 0cb7952020
Signed by: xZero707
GPG Key ID: 3CC53DCAA9C237BB
2 changed files with 7 additions and 1 deletions

6
src/wp-utils/wp-generate-salt Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
main() {
src/utils/random-string "${@}"
}
main "${@}"

View File

@ -7,7 +7,7 @@ main() {
mkdir -p "${secretsDir}" mkdir -p "${secretsDir}"
for key in "${keys[@]}"; do for key in "${keys[@]}"; do
value="$(src/utils/random-string 64)" value="$(src/wp-utils/wp-generate-salt 64)"
secretName="wordpress_${key,,}" secretName="wordpress_${key,,}"
secretFile="${secretsDir}/${secretName}" secretFile="${secretsDir}/${secretName}"