32 lines
No EOL
761 B
Bash
Executable file
32 lines
No EOL
761 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if command -v podman &> /dev/null; then
|
|
PROG="podman"
|
|
echo "Podman command exists"
|
|
elif command -v docker &> /dev/null; then
|
|
PROG="docker"
|
|
echo "Docker command exists"
|
|
else
|
|
echo "Container command (Docker/Podman) could not be found!"
|
|
exit 1
|
|
fi
|
|
|
|
if [ -d "nginx" ]; then
|
|
cd nginx
|
|
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
|
|
if [ -d "forgejo" ]; then
|
|
cd forgejo
|
|
echo "Attempting to start forgejo container ..."
|
|
$PROG compose -f docker-compose.yml up -d
|
|
cd ..
|
|
fi
|
|
|
|
echo "Program finished successfully!" |