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>2010-03-14 18:24:02 +0100
commitc3b5da9a8044ad7b5a9a1eab1753a402f6aa9bef (patch)
treecdaf2790cc6e24c7c62ba5ce4dc5222f41d07b16 /cgi
parentc0f03eb71fc967e2dbe7e9f760826e4b6d9fd6d2 (diff)
downloadvyos-live-build-c3b5da9a8044ad7b5a9a1eab1753a402f6aa9bef.tar.gz
vyos-live-build-c3b5da9a8044ad7b5a9a1eab1753a402f6aa9bef.zip
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 c23933236..0bf4554c2 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