summarylogtreecommitdiffstats
path: root/mandb-ondemand.install
diff options
context:
space:
mode:
authorgraysky2016-07-23 12:38:03 -0400
committergraysky2016-07-23 12:38:03 -0400
commitdecd4fc81d56546d9d286d5ee1d933a3fc24d65d (patch)
treeb615380b91a29643c0069a7b6ef48a267670719b /mandb-ondemand.install
parent6ec4ea753f0b1e90f08c4103af109c18c91e2f27 (diff)
downloadaur-decd4fc81d56546d9d286d5ee1d933a3fc24d65d.tar.gz
Update to 2.02-1
Diffstat (limited to 'mandb-ondemand.install')
-rw-r--r--mandb-ondemand.install9
1 files changed, 7 insertions, 2 deletions
diff --git a/mandb-ondemand.install b/mandb-ondemand.install
index d2d306d1a621..ec8af41c1793 100644
--- a/mandb-ondemand.install
+++ b/mandb-ondemand.install
@@ -1,9 +1,14 @@
post_install() {
systemctl start mandb-ondemand.path
- systemctl start mandb-ondemand-purge.path
}
pre_remove() {
systemctl stop mandb-ondemand.path
- systemctl stop mandb-ondemand-purge.path
+}
+
+pre_upgrade() {
+ # stop orphaned service as 2.02 no longer supplies this
+ if [ "`vercmp $2 2.02`" -lt 0 ]; then
+ systemctl stop mandb-ondemand-purge.path
+ fi
}