chore: correction in reload script

Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
Pranav C
2024-07-17 22:16:10 +05:30
parent 2cc98c27da
commit 32b656ed7d

View File

@@ -620,7 +620,7 @@ if [ "$SSL_ENABLED" = 'y' ] || [ "$SSL_ENABLED" = 'Y' ]; then
echo "Certificates renewed. Reloading nginx...";
sleep 5;
CONTAINER_NAME=\$\$(docker ps --format "{{.Names}}" | grep "nginx")
docker compose exec $CONTAINER_NAME nginx -s reload;
docker exec \$\$CONTAINER_NAME nginx -s reload;
fi;
sleep 12h & wait \$\${!};
done;'