diff options
author | Richard Nelson <unixabg@gmail.com> | 2013-02-26 18:09:06 -0600 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2013-05-06 14:50:06 +0200 |
commit | 559d7e5497fc1ba9da5b5d5d6af4c3aff283a30a (patch) | |
tree | 1661dbf3194007339cb4d37aab3abaea0be6c77f /frontends | |
parent | 869a4229b48c192dd885a1f7e97c5c3346219b01 (diff) | |
download | vyos-live-build-559d7e5497fc1ba9da5b5d5d6af4c3aff283a30a.tar.gz vyos-live-build-559d7e5497fc1ba9da5b5d5d6af4c3aff283a30a.zip |
Add log information of git:://url for l-b-cgi frontend.
Diffstat (limited to 'frontends')
-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 b72673fe2..d69449e17 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 |