From d4eea0e8383639d915f5c42277506471597389cbdc790b047c336bf9ff20e213 Mon Sep 17 00:00:00 2001 From: Ruediger Oertel Date: Fri, 27 Aug 2010 13:06:11 +0000 Subject: [PATCH] - switch SEND_OUTPUT_ON_NO_ERROR from yes to no in postinstall and only do that exactly once to switch the default (bnc#622203) OBS-URL: https://build.opensuse.org/package/show/Base:System/aaa_base?expand=0&rev=137 --- aaa_base.changes | 6 ++++++ aaa_base.post | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/aaa_base.changes b/aaa_base.changes index b560bd9..1845a6f 100644 --- a/aaa_base.changes +++ b/aaa_base.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Aug 27 15:05:22 CEST 2010 - ro@suse.de + +- switch SEND_OUTPUT_ON_NO_ERROR from yes to no in postinstall + and only do that exactly once to switch the default (bnc#622203) + ------------------------------------------------------------------- Thu Aug 26 12:19:53 CEST 2010 - ro@suse.de diff --git a/aaa_base.post b/aaa_base.post index 662167c..3285543 100644 --- a/aaa_base.post +++ b/aaa_base.post @@ -65,6 +65,12 @@ if grep -q RCCONFIG_BACKUP_DIR../var/adm/backup/rpmdb etc/sysconfig/backup; then mv /var/adm/backup/rpmdb/sysconfig[-_]* /var/adm/backup/sysconfig 2>/dev/null fi +if grep -q "SEND_OUTPUT_ON_NO_ERROR=\"yes\"" etc/sysconfig/cron -a ! -f var/adm/bnc_622203_fixed ; then + sed -e "s|^SEND_OUTPUT_ON_NO_ERROR=\"yes\"|SEND_OUTPUT_ON_NO_ERROR=\"no\"|" \ + etc/sysconfig/cron > etc/sysconfig/cron.new \ + && mv etc/sysconfig/cron.new etc/sysconfig/cron + touch var/adm/bnc_622203_fixed +fi # clear old install settings of MODULES_LOADED_ON_BOOT eval `grep "^MODULES_LOADED_ON_BOOT" etc/sysconfig/kernel`