summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@gmail.com>2010-05-20 06:27:58 +0000
committerLeonardo Arena <rnalrd@gmail.com>2010-05-20 10:03:47 +0000
commite5d2453c693989dbd855c76c192e57579b669ee4 (patch)
tree489491916ad5a7716bb22012e827854b703c931f /testing
parentc4d52845b0f31c48e8ac9328c8f73bedc4a05798 (diff)
downloadaports-e5d2453c693989dbd855c76c192e57579b669ee4.tar.bz2
aports-e5d2453c693989dbd855c76c192e57579b669ee4.tar.xz
testing/openxcap: pre,post scripts added
Diffstat (limited to 'testing')
-rwxr-xr-xtesting/openxcap/openxcap.post-install5
-rwxr-xr-xtesting/openxcap/openxcap.pre-install5
2 files changed, 10 insertions, 0 deletions
diff --git a/testing/openxcap/openxcap.post-install b/testing/openxcap/openxcap.post-install
new file mode 100755
index 000000000..b3dff4203
--- /dev/null
+++ b/testing/openxcap/openxcap.post-install
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+chown -R openxcap:openxcap /var/run/openxcap
+chgrp openxcap /etc/openxcap/config.ini
+exit 0
diff --git a/testing/openxcap/openxcap.pre-install b/testing/openxcap/openxcap.pre-install
new file mode 100755
index 000000000..cc2b529e9
--- /dev/null
+++ b/testing/openxcap/openxcap.pre-install
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+addgroup openxcap 2>/dev/null
+adduser -G openxcap -h /var/run/openxcap -s /bin/false -S -D -H openxcap 2>/dev/null
+exit 0