refactor: bash variable name

Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
Pranav C
2024-07-20 11:39:23 +05:30
parent 8984aee0b8
commit 3097d5ef03

View File

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