summaryrefslogtreecommitdiffstats
path: root/abs/core/openntpd/openntpd.install
blob: 837e4a1e3b691ca2c9193e4b34cab8a35e977315 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
post_install() {
  if [ ! "`grep ^ntp /etc/group`" ]; then
    echo "adding new group: ntp"
    /usr/sbin/groupadd -g 87 ntp
  fi
                    
  if [ ! "`grep ^ntp /etc/passwd`" ]; then
    echo "adding new user: ntp"
    /usr/sbin/useradd -g ntp -u 87 -d /var/empty -s /bin/false -c 'Network Time Protocol' ntp
  fi
}

post_upgrade() {
  post_install $1
}

pre_remove() {
  /bin/true
}

post_remove() {
  /bin/true
}

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