Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 290383 Details for
Bug 426755
RFE: report yum actions like RHN does in RHEL
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch for cron.daily
yum-cron-0.6-cron.daily-extension.patch (text/plain), 2.55 KB, created by
Milan Kerslager
on 2007-12-25 21:02:08 UTC
(
hide
)
Description:
Patch for cron.daily
Filename:
MIME Type:
Creator:
Milan Kerslager
Created:
2007-12-25 21:02:08 UTC
Size:
2.55 KB
patch
obsolete
>--- yum-cron-0.6/yum.cron.daily.extension 2007-10-16 00:08:04.000000000 +0200 >+++ yum-cron-0.6/yum.cron.daily 2007-12-23 23:07:22.000000000 +0100 >@@ -7,35 +7,56 @@ > exit 0 > fi > >+YUMTMP=$(mktemp /tmp/yum-cron.XXXXXX) >+ > # Try mkdir for the lockfile, will test for and make it in one atomic action > mkdir $LOCKFILE 2>/dev/null || exit > # and clean up that lockfile if the script exits or is killed >-trap "{ rmdir $LOCKFILE 2>/dev/null ; exit 255; }" INT TERM EXIT >+trap "{ rmdir $LOCKFILE 2>/dev/null ; rm -f $YUMTMP; exit 255; }" INT TERM EXIT > > # Grab config settings > if [ -f /etc/sysconfig/yum-cron ]; then > source /etc/sysconfig/yum-cron > fi > >+# defaults for (undefined) constants >+# set them in /etc/sysconfig/yum-cron >+[ -z "$SYSTEMNAME" ] && SYSTEMNAME=$(hostname) >+[ -z "$OPTIONS" ] && OPTIONS="-e 0 -d 0" >+[ -z "$RANDOMWAIT" ] && RANDOMWAIT="120" >+ > # if DOWNLOAD_ONLY is set then we force CHECK_ONLY too. > # Gotta check before one can download! >-if [[ "x$DOWNLOAD_ONLY" == "xyes" ]]; then >+if [ "$DOWNLOAD_ONLY" == "yes" ]; then > CHECK_ONLY=yes > fi > > # Then check for updates and/or do them, as configured >-if [[ "x$CHECK_ONLY" == "xyes" ]]; then >- if (! /usr/bin/yum -R 120 -e 0 -d 0 -y check-update >/dev/null); then >- echo "New updates available for host `/bin/hostname`"; >- echo -e "`/usr/bin/yum -e 0 -d 0 -y -C check-update`\n" >- if [[ "x$DOWNLOAD_ONLY" == "xyes" ]]; then >- /usr/bin/yum -e 0 -d 0 -y --downloadonly update>/dev/null >- echo "Updates downloaded, use \"yum -C update\" manually to install them." >+{ >+ if [ "$CHECK_ONLY" == "yes" ]; then >+ if ! /usr/bin/yum -R $RANDOMWAIT $OPTIONS -y check-update >/dev/null; then >+ echo "New updates available for host `/bin/hostname`" >+ /usr/bin/yum $OPTIONS -y -C check-update >+ if [ "$DOWNLOAD_ONLY" == "yes" ]; then >+ echo >+ echo "Updates downloaded, use \"yum -C update\" manually to install them." >+ echo >+ /usr/bin/yum $OPTIONS -y --downloadonly update >+ fi > fi >+ else >+ /usr/bin/yum -R $RANDOMWAIT $OPTIONS -y update yum >+ /usr/bin/yum $OPTIONS -y shell /etc/yum/yum-daily.yum > fi >+} > $YUMTMP 2>&1 >+ >+if [ ! -z "$MAILTO" ]; then >+ # if MAILTO is set, use mail command (ie better than standard mail with cron output) >+ [ -s "$YUMTMP" ] && mail -s "System update: $SYSTEMNAME" $MAILTO < $YUMTMP > else >- /usr/bin/yum -R 120 -e 0 -d 0 -y update yum >- /usr/bin/yum -R 10 -e 0 -d 0 -y shell /etc/yum/yum-daily.yum >+ # default behavior is to use cron's internal mailing of output from cron-script >+ cat $YUMTMP > fi >+rm -f $YUMTMP > > exit 0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 426755
: 290383 |
290384