diff options
Diffstat (limited to 'ntfy')
| -rwxr-xr-x | ntfy/deploy.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ntfy/deploy.sh b/ntfy/deploy.sh index 239c3db..cc11b5f 100755 --- a/ntfy/deploy.sh +++ b/ntfy/deploy.sh @@ -1,6 +1,12 @@ #!/usr/bin/env bash set -euo pipefail cd "$(dirname "$0")" + +# 管理画面で停止中なら起動しない(Start で stopped.txt から外れる) +if grep -qx ntfy ../status/stopped.txt 2>/dev/null; then + echo "ntfy: 管理画面で停止中のためスキップ" + exit 0 +fi docker compose pull -q # server.yml はファイル単位のマウントなので、git checkout で差し替わった内容を反映するため再作成する docker compose up -d --force-recreate |
