diff options
author | Michael Hanson <hansonorders@verizon.net> | 2010-11-16 03:36:25 (GMT) |
---|---|---|
committer | Michael Hanson <hansonorders@verizon.net> | 2010-11-16 03:36:25 (GMT) |
commit | 32602a0e190aaa952845b41d03cef45e6f05398f (patch) | |
tree | 7adcdcb3022e69940900492e8dc1ff51d4763266 /abs/core/openntpd/openntpd.install | |
parent | 98a17f32113b9127244f4e126cfe0defde4ecd66 (diff) | |
download | linhes_pkgbuild-32602a0e190aaa952845b41d03cef45e6f05398f.zip linhes_pkgbuild-32602a0e190aaa952845b41d03cef45e6f05398f.tar.gz linhes_pkgbuild-32602a0e190aaa952845b41d03cef45e6f05398f.tar.bz2 |
openntpd: initial include - replace ntp?
Diffstat (limited to 'abs/core/openntpd/openntpd.install')
-rw-r--r-- | abs/core/openntpd/openntpd.install | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/abs/core/openntpd/openntpd.install b/abs/core/openntpd/openntpd.install new file mode 100644 index 0000000..837e4a1 --- /dev/null +++ b/abs/core/openntpd/openntpd.install @@ -0,0 +1,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 |