openvpn logging

This commit is contained in:
Bob Mottram 2017-09-27 18:35:05 +01:00
parent 0359de62c1
commit a1c5b3132b
1 changed files with 4 additions and 2 deletions

View File

@ -58,11 +58,13 @@ vpn_variables=(MY_EMAIL_ADDRESS
VPN_TLS_PORT)
function logging_on_vpn {
echo -n ''
sed -i 's|status .*|status /var/log/openvpn.log|g' /etc/openvpn/server.conf
systemctl restart openvpn
}
function logging_off_vpn {
echo -n ''
sed -i 's|status .*|status /dev/null|g' /etc/openvpn/server.conf
systemctl restart openvpn
}
function install_interactive_vpn {