Added exit on failure

This commit is contained in:
Adam Parler 2026-05-18 15:33:02 -04:00
parent 1d2b267127
commit d77ef20718

View file

@ -8,6 +8,7 @@ elif command -v docker &> /dev/null; then
echo "Docker command exists"
else
echo "Container command (Docker/Podman) could not be found!"
exit 1
fi
if [ -d "nginx" ]; then
@ -15,6 +16,9 @@ if [ -d "nginx" ]; then
echo "Attempting to start nginx container ..."
$PROG compose -f docker-compose.yml up -d
cd ..
else
echo "Nginx folder does not exist. You must have an Nginx Proxy Manager instance to continue."
exit 1
fi
# Check if folder exists