summaryrefslogtreecommitdiff
path: root/examples/cron/snapshots.sh
diff options
context:
space:
mode:
Diffstat (limited to 'examples/cron/snapshots.sh')
-rwxr-xr-xexamples/cron/snapshots.sh5
1 files changed, 3 insertions, 2 deletions
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}"