diff options
Diffstat (limited to 'mail/deploy.sh')
| -rwxr-xr-x | mail/deploy.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mail/deploy.sh b/mail/deploy.sh index 6d00560..bc8e85e 100755 --- a/mail/deploy.sh +++ b/mail/deploy.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash set -euo pipefail cd "$(dirname "$0")" + +# 管理画面で停止中なら起動しない(Start で stopped.txt から外れる) +if grep -qx mail ../status/stopped.txt 2>/dev/null; then + echo "mail: 管理画面で停止中のためスキップ" + exit 0 +fi docker network create web 2>/dev/null || true docker compose up -d --build |
