summaryrefslogtreecommitdiff
path: root/testing/usbmuxd/usbmuxd.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-05-02 00:01:22 +0000
committerroot <root@rshg054.dnsready.net>2012-05-02 00:01:22 +0000
commitdefe74c9cba07c321ad2869d8f6872e64a167324 (patch)
tree22377a98049a863983b9a28d9d79fc737f665cc3 /testing/usbmuxd/usbmuxd.install
parent752015395fc8b95cc4a86b68189cb747fe9a8499 (diff)
Wed May 2 00:01:22 UTC 2012
Diffstat (limited to 'testing/usbmuxd/usbmuxd.install')
-rw-r--r--testing/usbmuxd/usbmuxd.install19
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/usbmuxd/usbmuxd.install b/testing/usbmuxd/usbmuxd.install
new file mode 100644
index 000000000..1a4859674
--- /dev/null
+++ b/testing/usbmuxd/usbmuxd.install
@@ -0,0 +1,19 @@
+post_install() {
+ groupadd -g 140 usbmux &>/dev/null
+ useradd -c 'usbmux user' -u 140 -g usbmux -d / -s /sbin/nologin usbmux &>/dev/null
+ passwd -l usbmux &>/dev/null
+}
+
+post_upgrade() {
+ getent group usbmux >/dev/null 2>&1 || groupadd -g 140 usbmux &>/dev/null
+ getent passwd usbmux >/dev/null 2>&1 || useradd -c 'usbmux user' -u 140 -g usbmux -d / -s /sbin/nologin usbmux &>/dev/null
+}
+
+post_remove() {
+ if getent passwd usbmux >/dev/null 2>&1; then
+ userdel usbmux
+ fi
+ if getent group usbmux >/dev/null 2>&1; then
+ groupdel usbmux
+ fi
+}