[dak/master] dinstall
new function maillogfile
Signed-off-by: Joerg Jaspert <joerg@debian.org>
---
config/debian/cron.dinstall | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/config/debian/cron.dinstall b/config/debian/cron.dinstall
index 7b0548f..3ce4233 100755
--- a/config/debian/cron.dinstall
+++ b/config/debian/cron.dinstall
@@ -340,6 +340,10 @@ function savetimestamp() {
echo ${NOW} > "${dbdir}/dinstallstart"
}
+function maillogfile() {
+ cat "$LOGFILE" | mail -s "Log for dinstall run of ${NOW}" cron@ftp-master.debian.org
+}
+
function renamelogfile() {
if [ -f "${dbdir}/dinstallstart" ]; then
RENAMETO=$(cat "${dbdir}/dinstallstart")
--
1.5.6.5
Reply to: