summaryrefslogtreecommitdiff
path: root/vpn/deploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'vpn/deploy.sh')
-rw-r--r--vpn/deploy.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/vpn/deploy.sh b/vpn/deploy.sh
index 0005d9a..71d5d6e 100644
--- a/vpn/deploy.sh
+++ b/vpn/deploy.sh
@@ -2,6 +2,12 @@
set -euo pipefail
cd "$(dirname "$0")"
+# 管理画面で停止中なら起動しない(Start で stopped.txt から外れる)
+if grep -qx vpn ../status/stopped.txt 2>/dev/null; then
+ echo "vpn: 管理画面で停止中のためスキップ"
+ exit 0
+fi
+
# 初期化前はスキップ(install.sh を先に実行する必要がある)
if [ ! -f users.conf ] || [ ! -f certs/server.crt ]; then
echo "VPN: 未初期化のためスキップ (install.sh を実行してください)"