From 6e763e024053aa04be666929fd6b713de1d5f05e Mon Sep 17 00:00:00 2001 From: corbolais Date: Sun, 8 Dec 2019 17:34:57 +0100 Subject: [PATCH] Debian: add openvpn user/group if missing. Signed-off-by: corbolais --- auto_install/install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/auto_install/install.sh b/auto_install/install.sh index 47f08bb..e5d6bbb 100755 --- a/auto_install/install.sh +++ b/auto_install/install.sh @@ -1293,6 +1293,9 @@ set_var EASYRSA_KEY_SIZE ${pivpnENCRYPT}" | $SUDO tee vars >/dev/null ${SUDOE} ./easyrsa gen-crl ${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%:*} + fi ${SUDOE} chown "$debianOvpnUserGroup" /etc/openvpn/crl.pem else ${SUDOE} chown nobody:nogroup /etc/openvpn/crl.pem