r2847 - dists/trunk/live-webhelper/scripts
rjent-guest at alioth.debian.org
rjent-guest at alioth.debian.org
Sun Sep 9 01:51:26 UTC 2007
Author: rjent-guest
Date: 2007-09-09 01:51:26 +0000 (Sun, 09 Sep 2007)
New Revision: 2847
Modified:
dists/trunk/live-webhelper/scripts/cron
Log:
cron bug on emails, modified pulling in vars needed from build file.
Modified: dists/trunk/live-webhelper/scripts/cron
===================================================================
--- dists/trunk/live-webhelper/scripts/cron 2007-09-08 09:20:19 UTC (rev 2846)
+++ dists/trunk/live-webhelper/scripts/cron 2007-09-09 01:51:26 UTC (rev 2847)
@@ -52,9 +52,13 @@
then
for FILE in "${TEMPDIR}"/*.build
do
- # Set the build number
- BUILD="`basename ${FILE} .build`"
-
+ # Pull in the variables we want from the config file.
+ # Pul in the build number
+ BUILD=`awk -F\" '/^BUILD=/{print $2}' ${FILE}`
+ # Pull in the email address
+ EMAIL=`awk -F\" '/^EMAIL=/{print $2}' ${FILE}`
+
+ # Drop out some build data for information if something goes wrong.
echo "`date +%b\ %d\ %H:%M:%S` ${HOSTNAME} live-webhelper: begin web build (${BUILD})." >> /var/log/live
# Creating build directory which also creates the config/chroot_sources folder
More information about the debian-live-changes
mailing list