Adapt to the changes in docker-env-secrets module

This commit is contained in:
2025-03-10 23:03:29 +01:00
parent 563cd9fd35
commit 93e089323a
3 changed files with 1 additions and 26 deletions

View File

@@ -44,9 +44,7 @@ main() {
return 1
fi
source /usr/local/bin/load_secrets
s6-envdir /run/secrets_normalized wp core install \
wp core install \
--url="${WORDPRESS_INIT_SITE_URL:?}" \
--title="${WORDPRESS_INIT_SITE_TITLE:-WordPress}" \
--admin_user="${WORDPRESS_INIT_ADMIN_USER:?}" \

View File

@@ -70,8 +70,6 @@ main() {
# This will prepend service name to all output from here
exec > >(while read -r line; do echo "[init-wpconfig-verify] ${line}"; done) 2>&1
source /usr/local/bin/load_secrets
echo "Checking salts..."
if ! checkSaltsEnv; then
echo "^^^ Some or all of the salts are not set. Cannot continue."

View File

@@ -1,21 +0,0 @@
#!/usr/bin/env bash
load_dir_env() {
local dir="$1"
shopt -s nullglob
for file in "$dir"/*; do
if [ -f "$file" ] && [[ "$(basename "$file")" != *=* ]]; then
varName="$(basename "$file")"
value="$(<"$file")"
export "${varName}=${value}"
fi
done
}
main() {
load_dir_env /run/secrets_normalized
}
main