mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-19 03:10:16 +00:00
dynamic pivpn home dir
This commit is contained in:
parent
0c44c83146
commit
44107290eb
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# PiVPN: revoke client script
|
# PiVPN: revoke client script
|
||||||
|
|
||||||
INSTALL_USER=$(cat /etc/pivpn/INSTALL_USER)
|
INSTALL_HOME=$(eval echo ~$(cat /etc/pivpn/INSTALL_USER))
|
||||||
REVOKE_STATUS=$(cat /etc/pivpn/REVOKE_STATUS)
|
REVOKE_STATUS=$(cat /etc/pivpn/REVOKE_STATUS)
|
||||||
PLAT=$(cat /etc/pivpn/DET_PLATFORM)
|
PLAT=$(cat /etc/pivpn/DET_PLATFORM)
|
||||||
INDEX="/etc/openvpn/easy-rsa/pki/index.txt"
|
INDEX="/etc/openvpn/easy-rsa/pki/index.txt"
|
||||||
|
@ -73,6 +73,6 @@ printf "::: Removing certs and client configuration for this profile.\n"
|
||||||
rm -rf "pki/reqs/${NAME}.req"
|
rm -rf "pki/reqs/${NAME}.req"
|
||||||
rm -rf "pki/private/${NAME}.key"
|
rm -rf "pki/private/${NAME}.key"
|
||||||
rm -rf "pki/issued/${NAME}.crt"
|
rm -rf "pki/issued/${NAME}.crt"
|
||||||
rm -rf "/home/${INSTALL_USER}/ovpns/${NAME}.ovpn"
|
rm -rf "${INSTALL_HOME}/ovpns/${NAME}.ovpn"
|
||||||
cp /etc/openvpn/easy-rsa/pki/crl.pem /etc/openvpn/crl.pem
|
cp /etc/openvpn/easy-rsa/pki/crl.pem /etc/openvpn/crl.pem
|
||||||
printf "::: Completed!\n"
|
printf "::: Completed!\n"
|
||||||
|
|
Loading…
Reference in a new issue