2016-04-19 18:01:55 +00:00
|
|
|
#!/usr/bin/env bash
|
2016-10-24 17:28:08 +00:00
|
|
|
|
|
|
|
# This scripts runs as root
|
|
|
|
echo ":: PiVPN Debug ::"
|
|
|
|
echo ":: Latest commit ::"
|
|
|
|
git --git-dir /etc/.pivpn/.git log -n 1
|
2016-12-08 14:53:23 +00:00
|
|
|
echo ":: Recursive list of files in /etc/openvpn/easy-rsa/pki ::"
|
|
|
|
ls -LR /etc/openvpn/easy-rsa/pki/ -Ireqs -Icerts_by_serial
|
2016-10-24 17:28:08 +00:00
|
|
|
echo ":: /etc/pivpn/* ::"
|
|
|
|
for filename in /etc/pivpn/*; do
|
|
|
|
echo ":: START $filename ::"
|
|
|
|
cat "$filename"
|
|
|
|
echo ":: END $filename ::"
|
|
|
|
done
|
2016-12-08 14:53:23 +00:00
|
|
|
echo ":: /etc/openvpn/easy-rsa/pki/Default.txt ::"
|
|
|
|
cat /etc/openvpn/easy-rsa/pki/Default.txt
|
2016-10-24 17:28:08 +00:00
|
|
|
echo ":: done ::"
|