From 8c5934261cb3ce65250f9494fd2095f8a8fb0853 Mon Sep 17 00:00:00 2001 From: sibel Date: Thu, 15 Jul 2010 13:57:18 +0200 Subject: ajout de usbmuxd#1.0.4-1 --- extra/usbmuxd/usbmuxd.install | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 extra/usbmuxd/usbmuxd.install (limited to 'extra/usbmuxd/usbmuxd.install') diff --git a/extra/usbmuxd/usbmuxd.install b/extra/usbmuxd/usbmuxd.install new file mode 100644 index 000000000..5b46db012 --- /dev/null +++ b/extra/usbmuxd/usbmuxd.install @@ -0,0 +1,21 @@ +post_install() { + getent group usbmux >/dev/null 2>&1 || usr/sbin/groupadd -g 140 usbmux + getent passwd usbmux >/dev/null 2>&1 || usr/sbin/useradd -c 'usbmux user' -u 140 -g usbmux -d / -s /sbin/nologin usbmux + + usr/bin/passwd -l usbmux &>/dev/null +} + +pre_upgrade () { + if [ $2 == "1.0.4-1" ]; then + pre_remove $1 + fi +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + getent passwd usbmux >/dev/null 2>&1 && userdel usbmux + getent group usbmux >/dev/null 2>&1 && groupdel usbmux +} -- cgit v1.2.3-70-g09d2