mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 19:00:15 +00:00
Debian: add openvpn user/group if missing.
Signed-off-by: corbolais <corbolais@gmail.com>
This commit is contained in:
parent
8affc9a313
commit
6e763e0240
1 changed files with 3 additions and 0 deletions
|
@ -1293,6 +1293,9 @@ set_var EASYRSA_KEY_SIZE ${pivpnENCRYPT}" | $SUDO tee vars >/dev/null
|
||||||
${SUDOE} ./easyrsa gen-crl
|
${SUDOE} ./easyrsa gen-crl
|
||||||
${SUDOE} cp pki/crl.pem /etc/openvpn/crl.pem
|
${SUDOE} cp pki/crl.pem /etc/openvpn/crl.pem
|
||||||
if test "${PLAT}" = "Debian"; then
|
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
|
${SUDOE} chown "$debianOvpnUserGroup" /etc/openvpn/crl.pem
|
||||||
else
|
else
|
||||||
${SUDOE} chown nobody:nogroup /etc/openvpn/crl.pem
|
${SUDOE} chown nobody:nogroup /etc/openvpn/crl.pem
|
||||||
|
|
Loading…
Reference in a new issue