From 516b93ee431d70e27bbcd6e73771922797f336b9 Mon Sep 17 00:00:00 2001 From: redfast00 Date: Mon, 24 Oct 2016 19:28:08 +0200 Subject: [PATCH] Added ISSUE_TEMPLATE.md, wrote debug script (#115) --- ISSUE_TEMPLATE.md | 20 ++++++++++++++++++++ scripts/pivpnDebug.sh | 17 ++++++++++++++++- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 ISSUE_TEMPLATE.md 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 ::"