mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-20 03:40:17 +00:00
Fix: mkdir: cannot create directory ‘/home/$pivpnUser/ovpns’: File exists
This commit is contained in:
parent
cb482d6697
commit
ff97f40ecf
1 changed files with 3 additions and 1 deletions
|
@ -1016,7 +1016,9 @@ confOVPN() {
|
||||||
# verify server name to strengthen security
|
# verify server name to strengthen security
|
||||||
$SUDO sed -i "s/SRVRNAME/${SERVER_NAME}/" /etc/openvpn/easy-rsa/pki/Default.txt
|
$SUDO sed -i "s/SRVRNAME/${SERVER_NAME}/" /etc/openvpn/easy-rsa/pki/Default.txt
|
||||||
|
|
||||||
$SUDO mkdir "/home/$pivpnUser/ovpns"
|
if [ ! -d "/home/$pivpnUser/ovpns" ]; then
|
||||||
|
$SUDO mkdir "/home/$pivpnUser/ovpns"
|
||||||
|
fi
|
||||||
$SUDO chmod 0777 -R "/home/$pivpnUser/ovpns"
|
$SUDO chmod 0777 -R "/home/$pivpnUser/ovpns"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue