From: Ian Kelling Date: Tue, 20 Oct 2020 19:58:30 +0000 (-0400) Subject: add hole vpn to automatically start X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=123f8cbe84f3aca5ddf04bc0670b1a0d3707b878;p=distro-setup add hole vpn to automatically start --- 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 :