From 1206a21e8fc941248e8edebb44fd770fa842dac5 Mon Sep 17 00:00:00 2001 From: 3wc <3wc.git@doesthisthing.work> Date: Fri, 25 Sep 2020 20:50:09 +0200 Subject: [PATCH] Debugging --- plugin.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugin.sh b/plugin.sh index ca1ca0f..3666fd2 100755 --- a/plugin.sh +++ b/plugin.sh @@ -20,8 +20,11 @@ generate_secrets() { export DOCKER_HOST="ssh://$PLUGIN_USER@$PLUGIN_HOST:$PLUGIN_PORT" + docker secret ls + echo "$SECRET" + for SECRET in $(yq r "$PLUGIN_COMPOSE" 'secrets.*.name'); do - if ! docker secret ls | grep "$SECRET"; then + if ! docker secret ls | grep -q "$SECRET"; then eval "echo \"generating $SECRET\"" PW=$(