mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 10:50:16 +00:00
Help debugging with install log
This commit is contained in:
parent
7f662ad13d
commit
5e29fdf3fb
3 changed files with 12 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
||||||
<!-- Hi, you are about to open a new issue. -->
|
<!-- 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
|
# 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 -->
|
<!-- 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`
|
## Console output of `curl install.pivpn.io | bash`
|
||||||
|
|
|
@ -12,6 +12,8 @@
|
||||||
|
|
||||||
|
|
||||||
######## VARIABLES #########
|
######## VARIABLES #########
|
||||||
|
tmpLog=/tmp/pivpn-install.log
|
||||||
|
instalLogLoc=/etc/pivpn/install.log
|
||||||
|
|
||||||
pivpnGitUrl="https://github.com/pivpn/pivpn.git"
|
pivpnGitUrl="https://github.com/pivpn/pivpn.git"
|
||||||
pivpnFilesDir="/etc/.pivpn"
|
pivpnFilesDir="/etc/.pivpn"
|
||||||
|
@ -1033,8 +1035,10 @@ chooseUser
|
||||||
unattendedUpgrades
|
unattendedUpgrades
|
||||||
|
|
||||||
# Install
|
# Install
|
||||||
installPiVPN
|
installPiVPN | tee ${tmpLog}
|
||||||
|
|
||||||
|
# Move the install log into /etc/pivpn for storage
|
||||||
|
$SUDO mv ${tmpLog} ${instalLogLoc}
|
||||||
|
|
||||||
displayFinalMessage
|
displayFinalMessage
|
||||||
|
|
||||||
|
|
7
pivpn
7
pivpn
|
@ -22,7 +22,12 @@ function listOVPNFunc {
|
||||||
}
|
}
|
||||||
|
|
||||||
function debugFunc {
|
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
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue