Fix ssl dir path for lego renewal

This commit is contained in:
Deon George 2024-10-22 22:31:33 +11:00
parent e159b98aac
commit e9a470cee6

4
ssl.sh

@ -50,9 +50,9 @@ elif [ "$1" == "lego" ]; then
fi fi
if [ "$2" == "renew" ]; then if [ "$2" == "renew" ]; then
lego ${LEGO_METHOD} --email="${LEGO_ACCOUNT_EMAIL}" ${LEGO_CERT_DOMAIN[@]} --path ${CERTDIR}/ssl/lego renew --renew-hook="touch ${RELOAD}" lego ${LEGO_METHOD} --email="${LEGO_ACCOUNT_EMAIL}" ${LEGO_CERT_DOMAIN[@]} --path ${CERTDIR}/lego renew --renew-hook="touch ${RELOAD}"
elif [ "$2" == "run" ]; then elif [ "$2" == "run" ]; then
lego ${LEGO_METHOD} --email="${LEGO_ACCOUNT_EMAIL}" ${LEGO_CERT_DOMAIN[@]} --path ${CERTDIR}/ssl/lego run --run-hook="touch ${RELOAD}" lego ${LEGO_METHOD} --email="${LEGO_ACCOUNT_EMAIL}" ${LEGO_CERT_DOMAIN[@]} --path ${CERTDIR}/lego run --run-hook="touch ${RELOAD}"
else else
echo "! ERROR: Not doing anything?" && exit 1 echo "! ERROR: Not doing anything?" && exit 1
fi fi