mirror of
https://github.com/pivpn/pivpn.git
synced 2025-04-27 01:30:12 +00:00
Set static IPs when using OpenVPN
- Preparation for feature request from issue #942
This commit is contained in:
parent
3f616d9254
commit
ead280e60f
5 changed files with 21 additions and 0 deletions
|
@ -1740,6 +1740,13 @@ confOpenVPN(){
|
|||
$SUDO rm /etc/openvpn/server.conf
|
||||
fi
|
||||
|
||||
if [ -d /etc/openvpn/ccd ]; then
|
||||
$SUDO rm -rf /etc/openvpn/ccd
|
||||
fi
|
||||
|
||||
# Create folder to store client specific directives used to push static IPs
|
||||
$SUDO mkdir /etc/openvpn/ccd
|
||||
|
||||
# If easy-rsa exists, remove it
|
||||
if [[ -d /etc/openvpn/easy-rsa/ ]]; then
|
||||
$SUDO rm -rf /etc/openvpn/easy-rsa/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue