aboutsummaryrefslogtreecommitdiffstats
path: root/main/openvpn/openvpn.pre-install
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-12-09 10:59:06 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2011-12-09 10:59:49 +0100
commit5da95ade3824aa45275b3457899ba8056b7c198f (patch)
treede4fa3861c617757e0e876d25fc51aa2ed717f1f /main/openvpn/openvpn.pre-install
parent3911cf1a05e9b9172b375ee21e1073cea66763d4 (diff)
downloadaports-5da95ade3824aa45275b3457899ba8056b7c198f.tar.bz2
aports-5da95ade3824aa45275b3457899ba8056b7c198f.tar.xz
main/openvpn: add pre-install script that creates user
Diffstat (limited to 'main/openvpn/openvpn.pre-install')
-rw-r--r--main/openvpn/openvpn.pre-install5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/openvpn/openvpn.pre-install b/main/openvpn/openvpn.pre-install
new file mode 100644
index 0000000000..e9c6a0d1ef
--- /dev/null
+++ b/main/openvpn/openvpn.pre-install
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+addgroup -S openvpn 2>/dev/null
+adduser -S -H -h /dev/null -s /bin/false -D -G openvpn openvpn 2>/dev/null
+exit 0