We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0c7d430 + 27b6d2d commit 64464beCopy full SHA for 64464be
docker-entrypoint.sh
@@ -89,7 +89,10 @@ for unique in "${UNIQUES[@]}"; do
89
set_config "$unique" "$unique_value"
90
else
91
# if not specified, let's generate a random value
92
- set_config "$unique" "$(head -c1M /dev/urandom | sha1sum | cut -d' ' -f1)"
+ current_set="$(sed -rn "s/define\((([\'\"])$unique\2\s*,\s*)(['\"])(.*)\3\);/\4/p" wp-config.php)"
93
+ if [ "$current_set" = 'put your unique phrase here' ]; then
94
+ set_config "$unique" "$(head -c1M /dev/urandom | sha1sum | cut -d' ' -f1)"
95
+ fi
96
fi
97
done
98
0 commit comments