aboutsummaryrefslogtreecommitdiffstats
path: root/ntp/ntp.install
blob: 24f0603cb73746919313e3b21c2753d7d017f25f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pre_install() {
  groupadd -g 87 ntp
  useradd -c "Network Time Protocol" -g ntp -d /var/lib/ntp -u 87 -s /bin/false ntp
}

post_install() {
  install -v -o ntp -g ntp -d /var/lib/ntp
}

post_remove() {
  userdel ntp
  groupdel ntp
  rm -rf /var/lib/ntp
}