summaryrefslogtreecommitdiff
path: root/vpn/deploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'vpn/deploy.sh')
-rw-r--r--vpn/deploy.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/vpn/deploy.sh b/vpn/deploy.sh
new file mode 100644
index 0000000..0005d9a
--- /dev/null
+++ b/vpn/deploy.sh
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+set -euo pipefail
+cd "$(dirname "$0")"
+
+# 初期化前はスキップ(install.sh を先に実行する必要がある)
+if [ ! -f users.conf ] || [ ! -f certs/server.crt ]; then
+ echo "VPN: 未初期化のためスキップ (install.sh を実行してください)"
+ exit 0
+fi
+
+docker compose up -d --build