summarylogtreecommitdiffstats
path: root/rescached-git.install
diff options
context:
space:
mode:
Diffstat (limited to 'rescached-git.install')
-rw-r--r--rescached-git.install14
1 files changed, 14 insertions, 0 deletions
diff --git a/rescached-git.install b/rescached-git.install
new file mode 100644
index 00000000000..e932c887799
--- /dev/null
+++ b/rescached-git.install
@@ -0,0 +1,14 @@
+post_upgrade() {
+ ## Remove old ads file
+ [[ -f /etc/rescached/hosts.ads ]] \
+ && rm -f /etc/rescached/hosts.ads
+
+ ## Fix wrong systemd service
+ [[ -f /etc/systemd/system/rescached.service ]] \
+ && rm -f /etc/systemd/system/rescached.service
+
+ systemctl daemon-reload
+
+ echo ':: rescached service now installed in /usr/lib/systemd/system'
+ echo ':: Please reenable the service if you want to start it at boot'
+}