Added exit on failure
This commit is contained in:
parent
1d2b267127
commit
d77ef20718
1 changed files with 4 additions and 0 deletions
4
setup.sh
4
setup.sh
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue