diff options
-rwxr-xr-x | debian/vyatta-cfg-system.postinst.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in index 965563c8..18e84055 100755 --- a/debian/vyatta-cfg-system.postinst.in +++ b/debian/vyatta-cfg-system.postinst.in @@ -28,6 +28,11 @@ if ! grep -q '^tss' /etc/passwd; then adduser --system --group --shell /usr/sbin/nologin --home /var/lib/tpm tss fi +# OpenVPN should get its own user +if ! grep -q '^openvpn' /etc/passwd; then + sudo adduser --system --group --shell /usr/sbin/nologin --home /var/lib/openvpn openvpn +fi + # Remove leftover udev files from earlier release if [ -d /etc/udev/rules.d/ ]; then rm -f /etc/udev/rules.d/*vyatta-net.rules |