1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00
This commit is contained in:
billz 2020-11-02 08:23:55 +00:00
parent 2c60b34084
commit 64736d64cc

View File

@ -266,7 +266,7 @@ function _prompt_install_openvpn() {
function _install_openvpn() { function _install_openvpn() {
_install_log "Installing OpenVPN and enabling client configuration" _install_log "Installing OpenVPN and enabling client configuration"
echo "Adding packages via apt-get" echo "Adding packages via apt-get"
sudo apt-get install $apt_option openvpn || _install_status 1 "Unable to install openvpn" sudo apt-get install -y openvpn || _install_status 1 "Unable to install openvpn"
sudo sed -i "s/\('RASPI_OPENVPN_ENABLED', \)false/\1true/g" "$webroot_dir/includes/config.php" || _install_status 1 "Unable to modify config.php" sudo sed -i "s/\('RASPI_OPENVPN_ENABLED', \)false/\1true/g" "$webroot_dir/includes/config.php" || _install_status 1 "Unable to modify config.php"
echo "Enabling openvpn-client service on boot" echo "Enabling openvpn-client service on boot"
sudo systemctl enable openvpn-client@client || _install_status 1 "Unable to enable openvpn-client daemon" sudo systemctl enable openvpn-client@client || _install_status 1 "Unable to enable openvpn-client daemon"