From 9310e696671534e9c8008bb5783e2f982afd84fa Mon Sep 17 00:00:00 2001 From: Richard Nelson Date: Wed, 19 Dec 2012 22:15:24 -0600 Subject: Unify _DEBUG variable values to be true or false for l-b-cgi. --- frontends/cgi/live-build-cgi | 4 ++-- frontends/cgi/live-build-cgi.cron | 6 +++--- frontends/cgi/live-build-cgi.default | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'frontends/cgi') diff --git a/frontends/cgi/live-build-cgi b/frontends/cgi/live-build-cgi index 54ac528cc..990af44dc 100755 --- a/frontends/cgi/live-build-cgi +++ b/frontends/cgi/live-build-cgi @@ -22,8 +22,8 @@ fi _HOSTNAME="$(hostname -f)" -# Turn on debug if enabled -if [ "${_DEBUG}" = "enabled" ] +# Turn on debug if true +if [ "${_DEBUG}" = "true" ] then set -x fi diff --git a/frontends/cgi/live-build-cgi.cron b/frontends/cgi/live-build-cgi.cron index d71661f62..13d7e06b5 100755 --- a/frontends/cgi/live-build-cgi.cron +++ b/frontends/cgi/live-build-cgi.cron @@ -20,15 +20,15 @@ else fi # Exit if disabled -if [ "${_WEBBUILD}" != "enabled" ] +if [ "${_WEBBUILD}" != "true" ] then exit 0 fi _HOSTNAME="$(hostname -f)" -# Turn on debug if enabled -if [ "${_DEBUG}" = "enabled" ] +# Turn on debug if true +if [ "${_DEBUG}" = "true" ] then set -x fi diff --git a/frontends/cgi/live-build-cgi.default b/frontends/cgi/live-build-cgi.default index 8427de239..41aa58dc4 100644 --- a/frontends/cgi/live-build-cgi.default +++ b/frontends/cgi/live-build-cgi.default @@ -1,10 +1,10 @@ # Defaults for /etc/cron.daily/live-build-cgi -_WEBBUILD="disabled" +_WEBBUILD="false" _MODE="debian" -_DEBUG="disabled" +_DEBUG="false" _DESTDIR="/srv/debian-live/build/www" _TEMPLATES="/usr/share/live/build/templates/cgi/${_MODE}" -- cgit v1.2.3