From 671baf587d3649ff99278dfd7637686881082fe2 Mon Sep 17 00:00:00 2001 From: billz Date: Fri, 22 Nov 2019 12:41:19 +0000 Subject: [PATCH] Enable openvpn-client service. Resolves #437 --- installers/common.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/installers/common.sh b/installers/common.sh index a5203582..8ee53884 100755 --- a/installers/common.sh +++ b/installers/common.sh @@ -146,6 +146,8 @@ function install_openvpn() { install_log "Installing OpenVPN and enabling client configuration" sudo apt-get install -y openvpn || install_error "Unable to install openvpn" sudo sed -i "s/\('RASPI_OPENVPN_ENABLED', \)false/\1true/g" "$webroot_dir/includes/config.php" || install_error "Unable to modify config.php" + echo "Enabling openvpn-client service on boot" + sudo systemctl enable openvpn-client@client || install_error "Unable to enable opevpn-client daemon" create_openvpn_scripts || install_error "Unable to create openvpn control scripts" }