summarylogtreecommitdiffstats
path: root/rescached-git.install
diff options
context:
space:
mode:
authorM. Shulhan2016-09-04 02:24:13 +0700
committerM. Shulhan2016-09-04 02:24:13 +0700
commit4e7faac51fdf441541a2fb6b5627da27973387e3 (patch)
treeb91b77e67b5eeeb4e2d9de69a3dd0ffa33cb6886 /rescached-git.install
parent773eb8e2afb8f660db32ca81e56dd768c5c9e6c6 (diff)
downloadaur-4e7faac51fdf441541a2fb6b5627da27973387e3.tar.gz
Remove $_pkgname variable to simplify build
Also, - Use tagging on package version - Add conflicted packages - Add 'gcc-libs' as dependency as recommended by namcap - Install license file - Ignore generated tar file
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'
+}