blob: 87e7b5e9078db171e0479a7c17d2fe81a55fbecc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
post_install(){
groupadd -g 78 vncsvc &>/dev/null
useradd -u 78 -m -g vncsvc -d /home/vncsvc -s /bin/bash vncsvc &>/dev/null
usermod -a -G mythtv vncsvc
chown -R vncsvc:vncsvc /home/vncsvc &>/dev/null
}
post_upgrade(){
getent group vncsvc >/dev/null 2>&1 || groupadd -g 78 vncsvc &>/dev/null
getent passwd vncsvc >/dev/null 2>&1 || useradd -u 78 -g vncsvc -m -d /home/vncsvc -s /bin/bash vncsvc &>/dev/null
usermod -a -G mythtv vncsvc
}
post_remove(){
if getent passwd vncsvc >/dev/null 2>&1; then
userdel vncsvc
fi
if getent group vncsvc >/dev/null 2>&1; then
groupdel vncsvc
fi
}
|