]> err.no Git - dak/commitdiff
dinstall
authorJoerg Jaspert <joerg@debian.org>
Tue, 10 Mar 2009 21:29:45 +0000 (22:29 +0100)
committerJoerg Jaspert <joerg@debian.org>
Tue, 10 Mar 2009 21:29:45 +0000 (22:29 +0100)
new function maillogfile

Signed-off-by: Joerg Jaspert <joerg@debian.org>
config/debian/cron.dinstall

index 7b0548f757836b9e71b04e4aed91dde4d037c9c5..3ce423318d83fcd94e4bb6c2224aa53e385a1058 100755 (executable)
@@ -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")