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 296722 Details for
Bug 435628
interactoin between packagekit and yum-updatesd
[?]
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]
packagekit with cron
pk-cron.patch (text/plain), 2.46 KB, created by
Richard Hughes
on 2008-03-04 11:12:20 UTC
(
hide
)
Description:
packagekit with cron
Filename:
MIME Type:
Creator:
Richard Hughes
Created:
2008-03-04 11:12:20 UTC
Size:
2.46 KB
patch
obsolete
>diff --git a/data/Makefile.am b/data/Makefile.am >index 591f0eb..7567cdd 100644 >--- a/data/Makefile.am >+++ b/data/Makefile.am >@@ -10,6 +10,12 @@ SUBDIRS = \ > pkgconfigdir = $(libdir)/pkgconfig > pkgconfig_DATA = packagekit.pc > >+cronfiledir = ${SYSCONFDIR}/cron.daily >+cronfile_DATA = packagekit-background.cron >+ >+crondatadir = ${SYSCONFDIR}/sysconfig >+crondata_DATA = packagekit-background >+ > pmutilsdir = $(libdir)/pm-utils/sleep.d > pmutils_DATA = 95packagekit > >diff --git a/data/packagekit-background b/data/packagekit-background >new file mode 100644 >index 0000000..4bfc9f2 >--- /dev/null >+++ b/data/packagekit-background >@@ -0,0 +1,15 @@ >+# Don't install, just check (valid: yes|no) >+CHECK_ONLY=no >+ >+# if MAILTO is set, the mail command is used to deliver yum output >+# by default MAILTO is unset, so crond mails the output by itself >+#MAILTO=root >+ >+# you may set SYSTEMNAME if you want your yum emails tagged differently >+# default is output of hostname command >+#SYSTEM_NAME="" >+ >+# you may set DAYS_OF_WEEK to the days of the week you want to run >+# default is every day >+#DAYS_OF_WEEK="0123456" >+ >diff --git a/data/packagekit-background.cron b/data/packagekit-background.cron >new file mode 100644 >index 0000000..97f3a7a >--- /dev/null >+++ b/data/packagekit-background.cron >@@ -0,0 +1,42 @@ >+#!/bin/sh >+# Copyright (C) 2008 Richard Hughes <richard@hughsie.com> >+# >+# Some material taken from yum-cron, Copyright 2007 Alec Habig <ahabig@umn.edu> >+# >+# Licensed under the GNU General Public License Version 2 >+# This program is free software; you can redistribute it and/or modify >+# it under the terms of the GNU General Public License as published by >+# the Free Software Foundation; either version 2 of the License, or >+# (at your option) any later version. >+ >+[ -f /etc/sysconfig/packagekit-background ] && . /etc/sysconfig/packagekit-background >+ >+# set default for SYSTEMNAME >+[ -z "$SYSTEMNAME" ] && SYSTEMNAME=$(hostname) >+ >+# 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 >+ >+PKTMP=$(mktemp /var/run/packagekit-cron.XXXXXX) >+ >+# do action >+if [ "$CHECK_ONLY" == "yes" ]; then >+ pkcon get updates > $PKTMP >+else >+ pkcon update-system > $PKTMP >+fi >+ >+# send email >+if [ -n "$MAILTO" ]; then >+ mail -s "System updates available: $SYSTEMNAME" $MAILTO < $PKTMP >+else >+ # default behavior is to use cron's internal mailing of output from cron-script >+ cat $PKTMP >+fi >+ >+rm -f $PKTMP >+
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 435628
: 296722