From 9281c113ef910cd490999e59663a06e7977e0304 Mon Sep 17 00:00:00 2001 From: Andrew Hurley Date: Wed, 8 Sep 2021 18:05:50 +1000 Subject: [PATCH] Restore to earlier. --- sync.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sync.sh b/sync.sh index c3218f5..632d429 100644 --- a/sync.sh +++ b/sync.sh @@ -37,8 +37,7 @@ for FILE in /run/secrets/*domain_*; do echo "Cannot find secrets"; exit 1; fi - FNAME=${FILE#*domain_} - FNAME=${FNAME%_key} + FNAME=${FILE##*_} echo "Secret file $FILE found. Copying to /etc/sslmate/keys/${FNAME}" cp "${FILE}" "/etc/sslmate/keys/${FNAME}" done