summarylogtreecommitdiffstats
path: root/rbldnsd-sync.install
diff options
context:
space:
mode:
authorpappy2019-01-07 15:21:13 +0200
committerpappy2019-01-07 15:21:13 +0200
commit648c6baaa27437271f7186e373982b3376fc44b7 (patch)
tree225bb956cfe87c922409145516f45762b8b28475 /rbldnsd-sync.install
downloadaur-648c6baaa27437271f7186e373982b3376fc44b7.tar.gz
initial import
Diffstat (limited to 'rbldnsd-sync.install')
-rw-r--r--rbldnsd-sync.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/rbldnsd-sync.install b/rbldnsd-sync.install
new file mode 100644
index 000000000000..4b60dd6b1eb0
--- /dev/null
+++ b/rbldnsd-sync.install
@@ -0,0 +1,20 @@
+
+post_install()
+{
+ systemctl enable --now rbldnsd-sync.timer
+ echo ""
+ echo "Initialising DBLs"
+ echo ""
+ systemctl start rbldnsd-sync
+}
+
+post_upgrade()
+{
+ systemctl daemon-reload
+}
+
+pre_remove()
+{
+ systemctl disable --now rbldnsd-sync.timer
+}
+