mirror of
https://github.com/borgmatic-collective/borgmatic.git
synced 2026-07-22 02:03:01 +02:00
17 lines
482 B
Bash
Executable File
17 lines
482 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
if command -v podman >/dev/null 2>&1; then
|
|
if ! command -v podman-compose >/dev/null 2>&1; then
|
|
echo "Error: podman is installed, but podman-compose is missing." >&2
|
|
exit 1
|
|
fi
|
|
COMPOSE_CMD="podman-compose"
|
|
export CONTAINER_SOCKET_PATH="${XDG_RUNTIME_DIR:-/run/user/$UID}/podman/podman.sock"
|
|
else
|
|
COMPOSE_CMD="docker-compose"
|
|
fi
|
|
|
|
BUILDKIT_PROGRESS=plain $COMPOSE_CMD --file docs/docker-compose.yaml up --build --force-recreate
|