blob: 1c4c4ee9576d0d6c2e389cc95d2ad7e1fb5c5d81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
post_install() {
getent group ntp &>/dev/null || groupadd -g 87 ntp >/dev/null
getent passwd ntp &>/dev/null || useradd -u 87 -g ntp -d /var/lib/ntp -c 'Network Time Protocol' -s /bin/false ntp >/dev/null
true
}
post_remove() {
getent passwd ntp &>/dev/null && userdel ntp >/dev/null
getent group ntp &>/dev/null && groupdel ntp >/dev/null
true
}
|