From 5e29fdf3fb58bc87671f4d996aff23bb88d3c231 Mon Sep 17 00:00:00 2001 From: Kaladin Light <0.kaladin@gmail.com> Date: Sat, 19 Nov 2016 15:52:13 -0500 Subject: [PATCH] Help debugging with install log --- ISSUE_TEMPLATE.md | 1 + auto_install/install.sh | 6 +++++- pivpn | 7 ++++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ISSUE_TEMPLATE.md b/ISSUE_TEMPLATE.md index 5352c52..b214268 100644 --- a/ISSUE_TEMPLATE.md +++ b/ISSUE_TEMPLATE.md @@ -1,4 +1,5 @@ + # PiVPN Issue Template ## Console output of `curl install.pivpn.io | bash` diff --git a/auto_install/install.sh b/auto_install/install.sh index a7f14ab..69e2826 100755 --- a/auto_install/install.sh +++ b/auto_install/install.sh @@ -12,6 +12,8 @@ ######## VARIABLES ######### +tmpLog=/tmp/pivpn-install.log +instalLogLoc=/etc/pivpn/install.log pivpnGitUrl="https://github.com/pivpn/pivpn.git" pivpnFilesDir="/etc/.pivpn" @@ -1033,8 +1035,10 @@ chooseUser unattendedUpgrades # Install -installPiVPN +installPiVPN | tee ${tmpLog} +# Move the install log into /etc/pivpn for storage +$SUDO mv ${tmpLog} ${instalLogLoc} displayFinalMessage diff --git a/pivpn b/pivpn index e93367e..01657e8 100644 --- a/pivpn +++ b/pivpn @@ -22,7 +22,12 @@ function listOVPNFunc { } function debugFunc { - $SUDO /opt/pivpn/pivpnDebug.sh + echo "::: Generating Debug Output" + $SUDO /opt/pivpn/pivpnDebug.sh | tee /tmp/debug.txt + echo "::: " + echo "::: Debug output completed above." + echo "::: Copy saved to /tmp/debug.txt" + echo "::: " exit 1 }