Files
backup-configs/root/docker/gitea/start.sh
Michael Seidel 98abeb9c85 Config-Backup 2026-03-28 15:32:04
Geänderte Dateien:
 - root/docker/gitea/start.sh
2026-03-28 15:32:04 +01:00

19 lines
475 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/sh
#/root/docker/gitea/start.sh
# Einheits Start.sh
set -euo pipefail
cd "$(dirname "$0")"
# 1) Name freimachen egal ob Container von docker run oder compose stammt
docker rm -f dokuwiki >/dev/null 2>&1 || true
# 2) Falls Compose-Reste existieren, wegräumen (optional, aber sauber)
docker compose down >/dev/null 2>&1 || true
# 3) Update + Recreate
docker compose pull
docker compose up -d --force-recreate --remove-orphans
# 4) Cleanup
docker image prune -f