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 292537 Details for
Bug 429716
RFE: days of week and check first
[?]
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 to add CHECK_FIRST and DAYS_OF_WEEK
yum-cron.patch (text/plain), 1.70 KB, created by
Orion Poplawski
on 2008-01-22 17:17:58 UTC
(
hide
)
Description:
patch to add CHECK_FIRST and DAYS_OF_WEEK
Filename:
MIME Type:
Creator:
Orion Poplawski
Created:
2008-01-22 17:17:58 UTC
Size:
1.70 KB
patch
obsolete
>--- ./yum-cron-0.7/yum.cron.daily 2008-01-09 10:33:42.000000000 -0700 >+++ yum.cron 2008-01-22 10:12:04.000000000 -0700 >@@ -7,6 +7,13 @@ > exit 0 > fi > >+# Only run on certain days of the week >+dow=`date +%w` >+DAYS_OF_WEEK=${DAYS_OF_WEEK:-0123456} >+if [ ${DAYS_OF_WEEK/$dow/} == ${DAYS_OF_WEEK} ]; then >+ exit 0 >+fi >+ > YUMTMP=$(mktemp /tmp/yum-cron.XXXXXX) > > # Try mkdir for the lockfile, will test for and make it in one atomic action >@@ -40,6 +47,15 @@ > echo > fi > fi >+ elif [ "$CHECK_FIRST" == "yes"]; then >+ # Don't run if we can't access the repos >+ /usr/bin/yum -R $RANDOMWAIT -e 0 -d 0 check-update 2>&- >+ case $? in >+ 1) exit 1;; >+ 100) /usr/bin/yum -e ${ERROR_LEVEL:-0} -d ${DEBUG_LEVEL:-0} -y update yum >+ /usr/bin/yum -e ${ERROR_LEVEL:-0} -d ${DEBUG_LEVEL:-0} -y shell /etc/yum/yum-daily.yum >+ ;; >+ esac > else > /usr/bin/yum -R $RANDOMWAIT -e ${ERROR_LEVEL:-0} -d ${DEBUG_LEVEL:-0} -y update yum > /usr/bin/yum -e ${ERROR_LEVEL:-0} -d ${DEBUG_LEVEL:-0} -y shell /etc/yum/yum-daily.yum >--- yum-cron-0.7/yum-cron.sysconf 2008-01-08 13:00:57.000000000 -0700 >+++ yum-cron 2008-01-22 10:14:05.000000000 -0700 >@@ -1,6 +1,9 @@ > # Don't install, just check (valid: yes|no) > CHECK_ONLY=no > >+# Check to see if you can reach the repos before updating (valid: yes|no) >+CHECK_FIRST=no >+ > # Don't install, just check and download (valid: yes|no) > # Implies CHECK_ONLY=yes (gotta check first to see what to download) > DOWNLOAD_ONLY=no >@@ -29,3 +32,7 @@ > # default is output of hostname command > # this variable is used only if MAILTO is set too > #SYSTEMNAME="" >+ >+# you may set DAYS_OF_WEEK to the days of the week you want to run >+# default is every day >+#DAYS_OF_WEEK="0123456"
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 429716
: 292537