Bugzilla – Attachment 96231 Details for
Bug 194424
Online update setup creates unusable cron job
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
patch for SLES10
online_update.diff (text/plain), 2.42 KB, created by
Jiří Suchomel
on 2006-08-16 13:40:36 UTC
(
hide
)
Description:
patch for SLES10
Filename:
MIME Type:
Creator:
Jiří Suchomel
Created:
2006-08-16 13:40:36 UTC
Size:
2.42 KB
patch
obsolete
>Index: yast2-online-update.spec.in >=================================================================== >--- yast2-online-update.spec.in (revision 31715) >+++ yast2-online-update.spec.in (working copy) >@@ -26,9 +26,14 @@ > > %post > if [ -f /etc/cron.d/yast2-online-update ] ; then >+ cronjob=`grep "rug up -t patch" /etc/cron.d/yast2-online-update 2>/dev/null | grep -v "\-y"` >+ if [ -n "$cronjob" ] ; then >+ # do not ask for confirmation >+ sed -e "s/rug up/rug up -y/" -i /etc/cron.d/yast2-online-update >+ fi > cronjob=`grep "online_update" /etc/cron.d/yast2-online-update 2>/dev/null` > if [ -n "$cronjob" ] ; then >- sed -e "s/online_update/rug up -t patch/" -i /etc/cron.d/yast2-online-update >+ sed -e "s/online_update/rug up -y -t patch/" -i /etc/cron.d/yast2-online-update > if [ "`echo "$cronjob" | grep -c " -g" 2>/dev/null`" -gt 0 ] ; then > sed -e "s/ -g/ -d/" -i /etc/cron.d/yast2-online-update > fi >Index: VERSION >=================================================================== >--- VERSION (revision 31715) >+++ VERSION (working copy) >@@ -1 +1 @@ >-2.13.43 >+2.13.44 >Index: src/AutoOnlineUpdate.ycp >=================================================================== >--- src/AutoOnlineUpdate.ycp (revision 31555) >+++ src/AutoOnlineUpdate.ycp (working copy) >@@ -164,10 +164,10 @@ > > string cronjob = ""; > if (timing == `weekly && day >= 0 && day <= 7) { >- cronjob = sformat( "%1 %2 * * %3 root rug up -t patch %4", minute, hour, >+ cronjob = sformat( "%1 %2 * * %3 root rug up -y -t patch %4", minute, hour, > day, options ); > } else { >- cronjob = sformat( "%1 %2 * * * root rug up -t patch %3", minute, hour, >+ cronjob = sformat( "%1 %2 * * * root rug up -y -t patch %3", minute, hour, > options ); > } > if ( autoget ) cronjob = cronjob + " -d"; >Index: package/yast2-online-update.changes >=================================================================== >--- package/yast2-online-update.changes (revision 31715) >+++ package/yast2-online-update.changes (working copy) >@@ -1,4 +1,10 @@ > ------------------------------------------------------------------- >+Wed Aug 16 12:31:33 CEST 2006 - jsuchome@suse.cz >+ >+- fixed generation of cron job: don't ask for confirmation (#194424) >+- 2.13.44 >+ >+------------------------------------------------------------------- > Wed Jun 28 14:15:47 CEST 2006 - jsuchome@suse.cz > > - shown one more "Please wait" popup during start (#188172)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 194424
:
94291
| 96231