Fixes #23, enhance 'pivpn add', minor bug fixes & other enhancements

This commit is contained in:
Kaladin Light 2016-05-05 21:04:57 -04:00
parent 6f9d151530
commit dea112f50f
3 changed files with 33 additions and 2 deletions

View file

@ -63,6 +63,8 @@ else
PLAT="raspbian"
fi
echo "${PLAT}" > /tmp/DET_PLATFORM
####### FUNCTIONS ##########
spinner()
{
@ -733,6 +735,7 @@ confNetwork() {
confOVPN() {
IPv4pub=$(dig +short myip.opendns.com @resolver1.opendns.com)
$SUDO cp /tmp/pivpnUSR /etc/pivpn/INSTALL_USER
$SUDO cp /tmp/DET_PLATFORM /etc/pivpn/DET_PLATFORM
# Set status that no certs have been revoked
echo 0 > /tmp/REVOKE_STATUS