Help debugging with install log

This commit is contained in:
Kaladin Light 2016-11-19 15:52:13 -05:00
parent 7f662ad13d
commit 5e29fdf3fb
3 changed files with 12 additions and 2 deletions

View file

@ -1,4 +1,5 @@
<!-- Hi, you are about to open a new issue. -->
<!-- For any output requested below, you may alternatively post it on http://pastebin.com and provide the pastebin url in it's place -->
# PiVPN Issue Template
<!-- If the install failed: can you please copy-paste the console output after running `curl install.pivpn.io | bash` between the backticks -->
## Console output of `curl install.pivpn.io | bash`

View file

@ -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

7
pivpn
View file

@ -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
}