From 4c5c73ec152075c33ae984f2249e5a2a531fd12a Mon Sep 17 00:00:00 2001 From: 3wc <3wc.git@doesthisthing.work> Date: Fri, 25 Sep 2020 20:47:13 +0200 Subject: [PATCH] Skip instead of remove existing secrets --- plugin.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plugin.sh b/plugin.sh index c81d6d9..3590d11 100755 --- a/plugin.sh +++ b/plugin.sh @@ -21,10 +21,11 @@ generate_secrets() { export DOCKER_HOST="ssh://$PLUGIN_USER@$PLUGIN_HOST:$PLUGIN_PORT" for SECRET in $(yq r "$PLUGIN_COMPOSE" 'secrets.*.name'); do - eval "docker secret rm \"$SECRET\" - || true"; - eval "echo \"generating $SECRET\"" - PW=$(