Starting vpn daemon

This commit is contained in:
Bob Mottram 2017-09-25 18:42:51 +01:00
parent 6cd292e51a
commit 00d1e643c6
1 changed files with 2 additions and 1 deletions

View File

@ -121,6 +121,7 @@ function restore_remote_vpn {
} }
function remove_vpn { function remove_vpn {
systemctl stop openvpn
apt-get -yq remove --purge fastd openvpn easy-rsa apt-get -yq remove --purge fastd openvpn easy-rsa
if [ -d /etc/openvpn ]; then if [ -d /etc/openvpn ]; then
rm -rf /etc/openvpn rm -rf /etc/openvpn
@ -297,7 +298,7 @@ y
create_user_vpn_key $MY_USERNAME create_user_vpn_key $MY_USERNAME
firewall_enable_vpn firewall_enable_vpn
systemctl openvpn start systemctl start openvpn
APP_INSTALLED=1 APP_INSTALLED=1
} }