Fix ssl dir path for lego renewal
This commit is contained in:
parent
e159b98aac
commit
e9a470cee6
4
ssl.sh
4
ssl.sh
@ -50,9 +50,9 @@ elif [ "$1" == "lego" ]; then
|
||||
fi
|
||||
|
||||
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
|
||||
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
|
||||
echo "! ERROR: Not doing anything?" && exit 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user