From 34c3e20f825d22d7b045a5185200c2ce34185925ef102fa14890bdafcdcb0a39 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Mon, 10 Nov 2014 10:17:13 +0000 Subject: [PATCH] Accepting request 260505 from home:Ledest:misc fix bashisms in pre scripts OBS-URL: https://build.opensuse.org/request/show/260505 OBS-URL: https://build.opensuse.org/package/show/Base:System/cronie?expand=0&rev=137 --- cronie.changes | 5 +++++ cronie.spec | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/cronie.changes b/cronie.changes index 4c53b17..050212e 100644 --- a/cronie.changes +++ b/cronie.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Nov 09 03:14:00 UTC 2014 - Led + +- fix bashisms in pre scripts + ------------------------------------------------------------------- Mon Sep 22 09:39:02 UTC 2014 - kstreitova@suse.com diff --git a/cronie.spec b/cronie.spec index 7719b20..71bfb77 100644 --- a/cronie.spec +++ b/cronie.spec @@ -17,7 +17,7 @@ # 3 : we don't need to do something with /etc/sysconfig/cron for now -%define cron_configs \{%{_sysconfdir}/pam.d/crond,%{_sysconfdir}/crontab,%{_sysconfdir}/cron.deny,%{_sysconfdir}/omc/srvinfo.d/cron.xml\} +%define cron_configs %{_sysconfdir}/pam.d/crond %{_sysconfdir}/crontab %{_sysconfdir}/cron.deny %{_sysconfdir}/omc/srvinfo.d/cron.xml Name: cronie Version: 1.4.12 Release: 0 @@ -153,7 +153,7 @@ install -v -m644 %{SOURCE5} %{buildroot}%{_sysconfdir}/omc/srvinfo.d/ # check if we are doing "ugly" update from old 4.1 vixie-cron check_cron_mail_feature=`%{_sbindir}/cron --help 2>&1 | %{_bindir}/grep mail` # vixie-cron 4.1 doesn't contain mail fature -if [ -e %{_sbindir}/cron -a "${check_cron_mail_feature}" == "" ]; then +if [ -e %{_sbindir}/cron -a -z "${check_cron_mail_feature}" ]; then # save configs for cronie post-install phase touch %{_localstatedir}/run/update_from_old_cron echo $1