Restore to earlier.

This commit is contained in:
Andrew Hurley 2021-09-08 18:05:50 +10:00
parent ada30adfe6
commit 9281c113ef
1 changed files with 1 additions and 2 deletions

View File

@ -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