1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00

Enable openvpn-client service. Resolves #437

This commit is contained in:
billz 2019-11-22 12:41:19 +00:00
parent 3ba3f3351b
commit 671baf587d

View File

@ -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"
}