diff options
author | Richard Nelson <unixabg@gmail.com> | 2013-02-26 18:09:06 -0600 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2013-04-09 05:52:09 +0200 |
commit | 5874c3f0ea4206c751bb7781a66b061ff616c867 (patch) | |
tree | b5fe0abc2fadc057a4352a484df08b7ce13c6aaa | |
parent | 72b0a43dab2b242d6e32ccd291607c675046d30a (diff) | |
download | vyos-live-build-5874c3f0ea4206c751bb7781a66b061ff616c867.tar.gz vyos-live-build-5874c3f0ea4206c751bb7781a66b061ff616c867.zip |
Add log information of git:://url for l-b-cgi frontend.
-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 |