From a1c5b3132b41d3a7ce2d8dea3f554666aceff06b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 27 Sep 2017 18:35:05 +0100 Subject: [PATCH] openvpn logging --- src/freedombone-app-vpn | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/freedombone-app-vpn b/src/freedombone-app-vpn index b32e4c36..460072e6 100755 --- a/src/freedombone-app-vpn +++ b/src/freedombone-app-vpn @@ -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 {