add .pem symlink if it not exists

This commit is contained in:
hoellen 2018-04-07 23:28:35 +02:00
parent 2dc2bcc8a9
commit 12a8e86d2a

View File

@ -116,6 +116,10 @@ do
mv -f "$arg/tmp.crt" "$arg/$NAME.crt" mv -f "$arg/tmp.crt" "$arg/$NAME.crt"
if [ ! -f "$NAME.pem" ]; then
ln -s "$NAME.crt" "$arg/$NAME.pem"
fi
echo "Certificate for \"$NAME\" successfully created!" echo "Certificate for \"$NAME\" successfully created!"
counter=$((counter+1)) counter=$((counter+1))