diff --git a/ISSUE_TEMPLATE.md b/ISSUE_TEMPLATE.md new file mode 100644 index 0000000..5352c52 --- /dev/null +++ b/ISSUE_TEMPLATE.md @@ -0,0 +1,20 @@ + +# PiVPN Issue Template + +## Console output of `curl install.pivpn.io | bash` +``` + +``` + +## Console output of `pivpn add` or `pivpn add nopass` +``` + +``` + +## Console output of `pivpn debug` +``` + +``` + + +## Issue diff --git a/scripts/pivpnDebug.sh b/scripts/pivpnDebug.sh index ea2f72c..66cadd8 100644 --- a/scripts/pivpnDebug.sh +++ b/scripts/pivpnDebug.sh @@ -1,2 +1,17 @@ #!/usr/bin/env bash -echo "::: This feature is not yet implemented... stay tuned!" + +# This scripts runs as root +echo ":: PiVPN Debug ::" +echo ":: Latest commit ::" +git --git-dir /etc/.pivpn/.git log -n 1 +echo ":: list of files in /etc/openvpn/easy-rsa/keys ::" +ls /etc/openvpn/easy-rsa/keys/ +echo ":: /etc/pivpn/* ::" +for filename in /etc/pivpn/*; do + echo ":: START $filename ::" + cat "$filename" + echo ":: END $filename ::" +done +echo ":: /etc/openvpn/easy-rsa/keys/Default.txt ::" +cat /etc/openvpn/easy-rsa/keys/Default.txt +echo ":: done ::"