Browse Source

refactor: bash variable name

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/9019/head
Pranav C 4 months ago
parent
commit
3097d5ef03
  1. 6
      docker-compose/setup-script/noco.sh

6
docker-compose/setup-script/noco.sh

@ -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...";

Loading…
Cancel
Save