diff options
author | Daniel Baumann <daniel@debian.org> | 2008-08-12 16:30:41 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:03:39 +0100 |
commit | 194bd9317fd54b8dcdab5f2abe91deccaaea0584 (patch) | |
tree | 571d9c5f7611716d78519daf0288cc17d8229506 /examples/cron/snapshots.sh | |
parent | 9e52973f34463dcef260fb55657ff73a744dfed1 (diff) | |
download | vyos-live-build-194bd9317fd54b8dcdab5f2abe91deccaaea0584.tar.gz vyos-live-build-194bd9317fd54b8dcdab5f2abe91deccaaea0584.zip |
Using $HOST rather than $HOSTNAME to avoid false positive in checkbashisms.
Diffstat (limited to 'examples/cron/snapshots.sh')
-rwxr-xr-x | examples/cron/snapshots.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/cron/snapshots.sh b/examples/cron/snapshots.sh index c2a82c07d..3a702c4a8 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}" |