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:
parent
3ba3f3351b
commit
671baf587d
@ -146,6 +146,8 @@ function install_openvpn() {
|
|||||||
install_log "Installing OpenVPN and enabling client configuration"
|
install_log "Installing OpenVPN and enabling client configuration"
|
||||||
sudo apt-get install -y openvpn || install_error "Unable to install openvpn"
|
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"
|
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"
|
create_openvpn_scripts || install_error "Unable to create openvpn control scripts"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user