summaryrefslogtreecommitdiff
path: root/cgi
diff options
context:
space:
mode:
authorRichard Nelson <unixabg@gmail.com>2010-03-14 12:05:33 -0500
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:17:05 +0100
commitd1eb25959a9dad078a9d9ced81276b83d913641e (patch)
treecdaf2790cc6e24c7c62ba5ce4dc5222f41d07b16 /cgi
parent1da384e8036d72153071a25f2016f63588bf1e35 (diff)
downloadlive-build-d1eb25959a9dad078a9d9ced81276b83d913641e.zip
live-build-d1eb25959a9dad078a9d9ced81276b83d913641e.tar.gz
Added debug option on l-h.cgi cron.
Diffstat (limited to 'cgi')
-rwxr-xr-xcgi/cron6
1 files changed, 6 insertions, 0 deletions
diff --git a/cgi/cron b/cgi/cron
index c239332..0bf4554 100755
--- a/cgi/cron
+++ b/cgi/cron
@@ -25,6 +25,12 @@ then
exit 0
fi
+# Turn on debug if enabled
+if [ "${_DEBUG}" = "enabled" ]
+then
+ set -x
+fi
+
# Checking lock file
if [ -f /var/lock/live-helper.cgi.lock ]
then