chg: openvpn-user home, shell.

Signed-off-by: corbolais <corbolais@gmail.com>
This commit is contained in:
corbolais 2019-12-08 17:40:30 +01:00
parent 6e763e0240
commit 1aa6472b72

View file

@ -1294,7 +1294,7 @@ set_var EASYRSA_KEY_SIZE ${pivpnENCRYPT}" | $SUDO tee vars >/dev/null
${SUDOE} cp pki/crl.pem /etc/openvpn/crl.pem
if test "${PLAT}" = "Debian"; then
if ! getent passwd openvpn; then
${SUDOE} adduser --system --home /etc/openvpn/ --no-create-home --group ${debianOvpnUserGroup%:*}
${SUDOE} adduser --system --home /var/lib/openvpn/ --no-create-home --group --disabled-login ${debianOvpnUserGroup%:*}
fi
${SUDOE} chown "$debianOvpnUserGroup" /etc/openvpn/crl.pem
else