Fix ssl dir path for lego renewal
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 28s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m7s
Create Docker Image / Final Docker Image Manifest (push) Successful in 8s

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

4
ssl.sh
View File

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