summaryrefslogtreecommitdiff
path: root/community/openntpd/openntpd.install
blob: 5b440ee2fb84f07102e3356ec878f92908fe9172 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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

  systemd-tmpfiles --create openntpd.conf
  true
}

post_upgrade() {
}

post_remove() {
  getent passwd ntp &>/dev/null && userdel ntp >/dev/null
  getent group ntp &>/dev/null && groupdel ntp >/dev/null
  true
}

# vim: ts=2 sw=2 et ft=sh