hacked a non-existing homedir.

This commit is contained in:
Bastiaan Nelissen 2016-12-08 19:55:58 +01:00 committed by GitHub
parent 939cd55694
commit fc14664401

View file

@ -911,7 +911,11 @@ confOVPN() {
# verify server name to strengthen security
$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"
}