blob: 06aa8926fe87de6c19b50ecf3f2eefcdc5c7ad4d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
post_install(){
/usr/bin/egrep -i "^svxlink" /etc/group >> /dev/zero
if [ ! $? -eq 0 ]
then
groupadd svxlink
fi
/usr/bin/egrep -i "^svxlink" /etc/passwd >> /dev/zero
if [ ! $? -eq 0 ]
then
useradd svxlink -m -d /var/spool/svxlink -g svxlink -G uucp,tty,audio
fi
chown -R svxlink:svxlink ${pkgdir}/var/spool/svxlink
}
pre_remove(){
systemctl stop svxlink.service
}
post_remove(){
/usr/bin/egrep -i "^svxlink" /etc/passwd >> /dev/zero
if [ $? -eq 0 ]
then
userdel svxlink
fi
/usr/bin/egrep -i "^svxlink" /etc/group >> /dev/zero
if [ $? -eq 0 ]
then
groupdel svxlink
fi
}
post_upgrade(){
gpasswd -a svxlink uucp
gpasswd -a svxlink tty
gpasswd -a svxlink audio
}
|