mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-19 03:10:16 +00:00
hacked a non-existing homedir.
This commit is contained in:
parent
939cd55694
commit
fc14664401
1 changed files with 6 additions and 2 deletions
|
@ -911,7 +911,11 @@ 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"
|
# Here we expect the user (${pivpnUser}) to have it's own home dir...
|
||||||
|
# Some users do not have an own homedir. ("mkdir: cannot create directory `/home/XXXX/ovpns': No such file or directory")
|
||||||
|
# We should ask the user were to put the 'ovpns' dir.
|
||||||
|
# For now I hacked it using a '-p' flag
|
||||||
|
$SUDO mkdir -p "/home/$pivpnUser/ovpns"
|
||||||
$SUDO chmod 0777 -R "/home/$pivpnUser/ovpns"
|
$SUDO chmod 0777 -R "/home/$pivpnUser/ovpns"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue