|
|
@ -613,9 +613,9 @@ if [ "$SSL_ENABLED" = 'y' ] || [ "$SSL_ENABLED" = 'Y' ]; then |
|
|
|
apk add docker-cli || { echo "Failed to install Docker CLI"; exit 1; }; |
|
|
|
apk add docker-cli || { echo "Failed to install Docker CLI"; exit 1; }; |
|
|
|
trap exit TERM; |
|
|
|
trap exit TERM; |
|
|
|
while :; do |
|
|
|
while :; do |
|
|
|
output=\$\$(certbot renew 2>&1); |
|
|
|
OUTPUT=\$\$(certbot renew 2>&1); |
|
|
|
echo "\$\$output"; |
|
|
|
echo "\$\$OUTPUT"; |
|
|
|
if echo "\$\$output" | grep -q "No renewals were attempted"; then |
|
|
|
if echo "\$\$OUTPUT" | grep -q "No renewals were attempted"; then |
|
|
|
echo "No certificates were renewed."; |
|
|
|
echo "No certificates were renewed."; |
|
|
|
else |
|
|
|
else |
|
|
|
echo "Certificates renewed. Reloading nginx..."; |
|
|
|
echo "Certificates renewed. Reloading nginx..."; |
|
|
|