19 lines
440 B
Bash
Executable file
19 lines
440 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!"
|
|
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
|
|
fi
|
|
|