mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-20 03:40:17 +00:00
Minor Adjustments
This commit is contained in:
parent
9ca5425c26
commit
0b50af3ea2
1 changed files with 2 additions and 2 deletions
|
@ -404,7 +404,7 @@ confOpenVPN () {
|
||||||
|
|
||||||
# Edit the EASY_RSA variable in the vars file to point to the new easy-rsa directory,
|
# Edit the EASY_RSA variable in the vars file to point to the new easy-rsa directory,
|
||||||
# And change from default 1024 encryption if desired
|
# And change from default 1024 encryption if desired
|
||||||
$SUDO cd /etc/openvpn/easy-rsa
|
cd /etc/openvpn/easy-rsa
|
||||||
$SUDO sed -i 's:"`pwd`":"/etc/openvpn/easy-rsa":' vars
|
$SUDO sed -i 's:"`pwd`":"/etc/openvpn/easy-rsa":' vars
|
||||||
if [[ $ENCRYPT -eq "1024" ]]; then
|
if [[ $ENCRYPT -eq "1024" ]]; then
|
||||||
$SUDO sed -i "s/\(KEY_SIZE=\).*/\1${ENCRYPT}/" vars
|
$SUDO sed -i "s/\(KEY_SIZE=\).*/\1${ENCRYPT}/" vars
|
||||||
|
@ -570,7 +570,7 @@ confOVPN() {
|
||||||
|
|
||||||
# if they changed client dns put in server config
|
# if they changed client dns put in server config
|
||||||
if [[ $OVPNDNS != "8.8.8.8" ]]; then
|
if [[ $OVPNDNS != "8.8.8.8" ]]; then
|
||||||
$SUDO sed -i -e "s/dhcp-option DNS 8.8.8.8/dhcp-option DNS ${OVPNDNS}/g" /etc/openvpn/server.conf
|
$SUDO sed -i "s/\(dhcp-option DNS \).*/\1${OVPNDNS}\"/" /etc/openvpn/server.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$SUDO mkdir /home/$pivpnUser/ovpns
|
$SUDO mkdir /home/$pivpnUser/ovpns
|
||||||
|
|
Loading…
Reference in a new issue