aboutsummaryrefslogtreecommitdiffstats
path: root/ntp/ntp.install
diff options
context:
space:
mode:
Diffstat (limited to 'ntp/ntp.install')
-rw-r--r--ntp/ntp.install14
1 files changed, 14 insertions, 0 deletions
diff --git a/ntp/ntp.install b/ntp/ntp.install
new file mode 100644
index 0000000..24f0603
--- /dev/null
+++ b/ntp/ntp.install
@@ -0,0 +1,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
+}