Save debug to /tmp/debug.log for WireGuard too, do not use temporary file to redact IPs in the OpenVPN log.

This commit is contained in:
Orazio 2020-10-27 12:19:46 +01:00
parent 8b69904b69
commit 7f1c5ba33c
3 changed files with 12 additions and 8 deletions

View file

@ -26,7 +26,12 @@ listConnected(){
}
debug(){
$SUDO ${scriptdir}/${vpn}/pivpnDEBUG.sh
echo "::: Generating Debug Output"
$SUDO ${scriptdir}/${vpn}/pivpnDEBUG.sh | tee /tmp/debug.log
echo "::: "
echo "::: Debug output completed above."
echo "::: Copy saved to /tmp/debug.log"
echo "::: "
exit 0
}