Files
gotosocial-vps/scripts/update.sh

19 lines
380 B
Bash
Raw Permalink 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.
#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ROOT_DIR="$(dirname "$SCRIPT_DIR")"
echo "==> GoToSocial aktualizace"
cd "$ROOT_DIR"
echo "==> Stahuji nejnovější obraz..."
docker-compose pull
echo "==> Restartuji kontejner..."
docker-compose up -d --force-recreate
echo "==> Aktualizace dokončena."
docker-compose ps