blob: 5aa93959522c4da876dc89cf193660585329d8d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
post_install(){
groupadd -g 78 vncsvc &>/dev/null
useradd -u 78 -m -g vncsvc -d /home/vncsvc -s /bin/bash vncsvc &>/dev/null
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
}
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
}
|