blob: bf465b05cdd901ede81921f8abd9b739985d8ac1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
post_install() {
groupadd --system sphinx &>/dev/null
useradd --system -g sphinx -s /bin/false sphinx &>/dev/null
chown -R sphinx:sphinx /var/lib/sphinx
}
post_upgrade(){
getent group sphinx >/dev/null 2>&1 || groupadd --system sphinx &>/dev/null
getent passwd sphinx >/dev/null 2>&1 || useradd --system -s /bin/false -g sphinx -s /bin/false sphinx &>/dev/null
}
## arg 1: the old package version
post_remove() {
userdel sphinx
groupdel sphinx
}
|