From ac14407c147d62f8886e3cc154e0c4de60ab704d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Wed, 8 Feb 2012 11:37:58 +0000 Subject: [PATCH] - rel 13 - don't exit from trigger Changed files: cronie.spec -> 1.56 --- cronie.spec | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/cronie.spec b/cronie.spec index 9a803b2..da2b807 100644 --- a/cronie.spec +++ b/cronie.spec @@ -17,7 +17,7 @@ Summary: Cron daemon for executing programs at set times Name: cronie Version: 1.4.8 -Release: 12 +Release: 13 License: MIT and BSD and GPL v2 Group: Daemons Source0: https://fedorahosted.org/releases/c/r/cronie/%{name}-%{version}.tar.gz @@ -179,17 +179,18 @@ if [ "$1" = "0" ]; then fi %systemd_reload -%triggerpostun -- cronie < 1.4.8-11 +%triggerpostun -- cronie < 1.4.8-13 if [ -f /etc/sysconfig/cron ]; then . /etc/sysconfig/cron __CROND_ARGS= [ "$CROND_SYSLOG_RESULT" = "yes" ] && __CROND_ARGS="-s" [ -n "$CROND_MAIL_PROG" ] && __CROND_ARGS="$__CROND_ARGS -m $CROND_MAIL_PROG" - [ -z "$__CROND_ARGS" ] && exit 0 - cp -f /etc/sysconfig/cron{,.rpmsave} - echo >>/etc/sysconfig/cron - echo "# Added by rpm trigger" >>/etc/sysconfig/cron - echo "CROND_ARGS=\"$CROND_ARGS $__CROND_ARGS\"" >>/etc/sysconfig/cron + if [ -n "$__CROND_ARGS" ]; then + cp -f /etc/sysconfig/cron{,.rpmsave} + echo >>/etc/sysconfig/cron + echo "# Added by rpm trigger" >>/etc/sysconfig/cron + echo "CROND_ARGS=\"$CROND_ARGS $__CROND_ARGS\"" >>/etc/sysconfig/cron + fi fi %systemd_trigger cronie.service -- 2.44.0