feat: add s3 readiness and orphan object reconciler
This commit is contained in:
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
cd "$(dirname "$0")/.."
|
||||
mode="${1:-stop}"
|
||||
python3 scripts/s3-outage.py prepare
|
||||
case "$mode" in
|
||||
stop) docker compose stop s3 2>&1 | grep -v Container || true ;;
|
||||
pause) docker compose pause s3 2>&1 | grep -v Container || true ;;
|
||||
*) echo "usage: s3-outage.sh stop|pause" >&2; exit 2 ;;
|
||||
esac
|
||||
echo "## S3: $mode"
|
||||
python3 scripts/s3-outage.py during
|
||||
case "$mode" in
|
||||
stop) docker compose start s3 2>&1 | grep -v Container || true ;;
|
||||
pause) docker compose unpause s3 2>&1 | grep -v Container || true ;;
|
||||
esac
|
||||
echo "## S3 восстановлен"
|
||||
python3 scripts/s3-outage.py after
|
||||
Reference in New Issue
Block a user