[SCM] debian-live branch, master, updated. 1.0_a48-1-98-gea96223

Daniel Baumann daniel at debian.org
Sat Aug 23 22:49:26 UTC 2008


The following commit has been merged in the master branch:
commit 8feb8433f9b7e7c72009f0347a597252af9e0c55
Author: Daniel Baumann <daniel at debian.org>
Date:   Tue Aug 12 16:30:41 2008 +0200

    Using $HOST rather than $HOSTNAME to avoid false positive in checkbashisms.

diff --git a/examples/cron/manpages.sh b/examples/cron/manpages.sh
index da58d94..00f49df 100755
--- a/examples/cron/manpages.sh
+++ b/examples/cron/manpages.sh
@@ -9,6 +9,7 @@ TEMPDIR="/srv/tmp/manpages"
 SERVER="/srv/debian-live/www/other/manpages"
 
 DATE_START="$(date -R)"
+HOST="$(hostname)"
 
 # Checking lock file
 if [ -f "${SERVER}"/lock ]
@@ -29,7 +30,7 @@ trap "test -f ${SERVER}/lock && rm -f ${SERVER}/lock; exit 0" 0 HUP INT QUIT KIL
 # Creating lock file
 echo "${DATE_START}" > "${SERVER}"/lock
 
-echo "$(date +%b\ %d\ %H:%M:%S) ${HOSTNAME} live-helper: begin manpage build." >> /var/log/live
+echo "$(date +%b\ %d\ %H:%M:%S) ${HOST} live-helper: begin manpage build." >> /var/log/live
 
 # Remove old manpages
 rm -f "${SERVER}"/*.html
@@ -96,4 +97,4 @@ EOF
 # Removing build directory
 rm -rf "${TEMPDIR}"
 
-echo "$(date +%b\ %d\ %H:%M:%S) ${HOSTNAME} live-helper: end manpage build." >> /var/log/live
+echo "$(date +%b\ %d\ %H:%M:%S) ${HOST} live-helper: end manpage build." >> /var/log/live
diff --git a/examples/cron/snapshots.sh b/examples/cron/snapshots.sh
index c2a82c0..3a702c4 100755
--- a/examples/cron/snapshots.sh
+++ b/examples/cron/snapshots.sh
@@ -21,6 +21,7 @@ SERVER="/mnt/daniel1/srv/debian-unofficial/live/debian"
 LOGFILE="${SERVER}/build.log"
 
 DATE_START="$(date -R)"
+HOST="$(hostname)"
 
 # Checking lock file
 if [ -f "${SERVER}"/Archive-Update-in-Progress ]
@@ -41,7 +42,7 @@ trap "test -f ${SERVER}/Archive-Update-in-Progress && rm -f ${SERVER}/Archive-Up
 # Creating lock file
 echo "${DATE_START}" > "${SERVER}"/Archive-Update-in-Progress
 
-echo "$(date +%b\ %d\ %H:%M:%S) ${HOSTNAME} live-snapshots: begin build." >> "${LOGFILE}"
+echo "$(date +%b\ %d\ %H:%M:%S) ${HOST} live-snapshots: begin build." >> "${LOGFILE}"
 
 # Processing packages
 for PACKAGE in ${PACKAGES}
@@ -179,4 +180,4 @@ rm -rf "${TEMPDIR}"
 chmod 0644 "${SERVER}"/*
 chmod 0766 "${SERVER}"/*.sh
 
-echo "$(date +%b\ %d\ %H:%M:%S) ${HOSTNAME} live-snapshots: end build." >> "${LOGFILE}"
+echo "$(date +%b\ %d\ %H:%M:%S) ${HOST} live-snapshots: end build." >> "${LOGFILE}"

-- 
debian-live



More information about the debian-live-changes mailing list