[packages/fcron] update switch trigger from cronie
glen
glen at pld-linux.org
Sun Mar 1 15:17:27 CET 2015
commit 14116da52dd241adadec8bda62a4abc1c63c55d7
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Mar 1 16:16:59 2015 +0200
update switch trigger from cronie
fcron.spec | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/fcron.spec b/fcron.spec
index d25f187..9540129 100644
--- a/fcron.spec
+++ b/fcron.spec
@@ -206,7 +206,13 @@ if [ "$1" = "0" ]; then
%groupremove crontab
fi
-%triggerpostun -- hc-cron
+%triggerun -- hc-cron,vixie-cron,cronie
+# Prevent preun from crond from working
+chmod a-x /etc/rc.d/init.d/crond
+
+%triggerpostun -- hc-cron,vixie-cron,cronie
+# Restore what triggerun removed
+chmod 754 /etc/rc.d/init.d/crond
# reinstall crond init.d links, which could be different
/sbin/chkconfig --del crond
/sbin/chkconfig --add crond
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/fcron.git/commitdiff/14116da52dd241adadec8bda62a4abc1c63c55d7
More information about the pld-cvs-commit
mailing list