1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 19:52:06 +00:00
iiab/roles/openvpn/templates/up_wan
georgejhunt a4fb89ba35 Vpn (#25)
* keep the xscenet url

* leave the amazon vpn called xscenet, and the service that connectes to it

* extra tab character

* the vars/default_vars.yml takes precedence over roles/openvpn/defaults/main.yml
2017-06-12 11:05:39 -07:00

9 lines
219 B
Bash
Executable file

#!/bin/bash
# if the wan has recently come up, see if we need to start openvpn
systemctl is-enabled openvpn
if [ $? -eq 0 ]; then
pgrep openvpn
if [ $? -ne 0 ]; then
systemctl start openvpn@xscenet
fi
fi