diff options
author | Richard Nelson <unixabg@gmail.com> | 2012-12-19 22:15:24 -0600 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2012-12-20 07:36:57 +0100 |
commit | 386488c833a007c2fda1011ba2db4e86a0840307 (patch) | |
tree | 6d10c2f3b7d7e1b684e48642a827b830b53592ce /frontends | |
parent | ab9cf9e4b3f2ae48f218a80b364e09dabf6ece25 (diff) | |
download | vyos-live-build-386488c833a007c2fda1011ba2db4e86a0840307.tar.gz vyos-live-build-386488c833a007c2fda1011ba2db4e86a0840307.zip |
Unify _DEBUG variable values to be true or false for l-b-cgi.
Diffstat (limited to 'frontends')
-rwxr-xr-x | frontends/cgi/live-build-cgi | 4 | ||||
-rwxr-xr-x | frontends/cgi/live-build-cgi.cron | 6 | ||||
-rw-r--r-- | frontends/cgi/live-build-cgi.default | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/frontends/cgi/live-build-cgi b/frontends/cgi/live-build-cgi index 23f0c89ca..f2750fbe9 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 2f5cf043e..1d21f8f02 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}" |