summaryrefslogtreecommitdiff
path: root/cgit/deploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'cgit/deploy.sh')
-rw-r--r--cgit/deploy.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/cgit/deploy.sh b/cgit/deploy.sh
index 276b188..eecf5f9 100644
--- a/cgit/deploy.sh
+++ b/cgit/deploy.sh
@@ -1,4 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
+
+# 管理画面で停止中なら起動しない(Start で stopped.txt から外れる)
+if grep -qx git ../status/stopped.txt 2>/dev/null; then
+ echo "cgit: 管理画面で停止中のためスキップ"
+ exit 0
+fi
docker compose up -d --build