Appease formatter

This commit is contained in:
Luke Murphy 2020-09-25 19:55:56 +02:00
parent 3ff306e037
commit a62a8a1432
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 2 additions and 2 deletions

View File

@ -14,10 +14,10 @@ generate_secrets() {
BINARY=yq_linux_amd64
wget https://github.com/mikefarah/yq/releases/download/${VERSION}/${BINARY} -O /usr/bin/yq &&\
chmod +x /usr/bin/yq
for SECRET in $(yq r "$PLUGIN_COMPOSE" 'secrets.*.name'); do
for SECRET in $(yq r "$PLUGIN_COMPOSE" 'secrets.*.name'); do
eval "echo \"generating $SECRET\""
PW=$(</dev/urandom tr -dc 'A-Za-z0-9' | head -c 40; echo)
eval "echo \"$PW\" | docker secret create \"$SECRET\" -";
eval "echo \"$PW\" | docker secret create \"$SECRET\" -";
done
echo "--- end secrets ---"
}