diff options
Diffstat (limited to 'frontends/cgi')
-rwxr-xr-x | frontends/cgi/live-build-cgi.cron | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/frontends/cgi/live-build-cgi.cron b/frontends/cgi/live-build-cgi.cron index 538d5352f..86e0b0025 100755 --- a/frontends/cgi/live-build-cgi.cron +++ b/frontends/cgi/live-build-cgi.cron @@ -63,6 +63,9 @@ then # Pull in variables from the build file. . "${_FILE}" + # Drop out some build data for information if something goes wrong. + echo "`date +%b\ %d\ %H:%M:%S` ${_HOSTNAME} live-build-cgi: begin web build (${_BUILD})." >> /var/log/live + # Clone the git config to target build directory git clone ${_LB_GIT} "${_TEMPDIR}"/"${_BUILD}" >> /var/log/live _ERRORGIT="${?}" @@ -76,8 +79,9 @@ then # Now set a variable for the correct build path _BUILD_PATH="${_TEMPDIR}/${_BUILD}/images/${_LB_CONFIG}" - # Drop out some build data for information if something goes wrong. - echo "`date +%b\ %d\ %H:%M:%S` ${_HOSTNAME} live-build-cgi: begin web build (${_BUILD})." >> /var/log/live + _DATE_START="`date -R`" + echo "Begin live-build-cgi: ${_DATE_START}" > "${_BUILD_PATH}"/log + echo "Info live-build-cgi: Config tree cloned from ${_LB_GIT} for build ${_BUILD}" >> "${_BUILD_PATH}"/log # Creating directory for the config/package-lists mkdir -p "${_BUILD_PATH}"/config/package-lists @@ -88,9 +92,6 @@ then echo "${_LB_CGIPACKAGES}" > "${_BUILD_PATH}"/config/package-lists/cgipackages.list.chroot fi - _DATE_START="`date -R`" - echo "Begin: ${_DATE_START}" > "${_BUILD_PATH}"/log - # Generating config here if [ "${_ERRORGIT}" -eq "0" ] then |