diff --git a/aaa_base.post b/aaa_base.post index 3285543..75f2732 100644 --- a/aaa_base.post +++ b/aaa_base.post @@ -65,11 +65,13 @@ 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 +if grep -q "SEND_OUTPUT_ON_NO_ERROR=\"yes\"" etc/sysconfig/cron ; then + if test ! -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 fi # clear old install settings of MODULES_LOADED_ON_BOOT