From 123f8cbe84f3aca5ddf04bc0670b1a0d3707b878 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Tue, 20 Oct 2020 15:58:30 -0400 Subject: [PATCH] add hole vpn to automatically start --- primary-setup | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/primary-setup b/primary-setup index 4c7aecc..4011838 100755 --- a/primary-setup +++ b/primary-setup @@ -66,6 +66,14 @@ if dpkg -s radicale &>/dev/null; then fi fi +if [[ $HOSTNAME == "$MAIL_HOST" ]]; then + m sudo systemctl start openvpn-client@hole + m sudo systemctl enable openvpn-client@hole +else + m sudo systemctl stop openvpn-client@hole + m sudo systemctl disable openvpn-client@hole +fi + m /a/exe/mail-setup exit 0 : -- 2.30.2