blob: 5b46db0127373026b94a96d16b8f311c3ab39bcc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
}
|