Add log information of git:://url for l-b-cgi frontend.

This commit is contained in:
Richard Nelson 2013-02-26 18:09:06 -06:00 committed by Daniel Baumann
parent 869a4229b4
commit 559d7e5497
1 changed files with 6 additions and 5 deletions

View File

@ -63,6 +63,9 @@ then
# Pull in variables from the build file. # Pull in variables from the build file.
. "${_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 # Clone the git config to target build directory
git clone ${_LB_GIT} "${_TEMPDIR}"/"${_BUILD}" >> /var/log/live git clone ${_LB_GIT} "${_TEMPDIR}"/"${_BUILD}" >> /var/log/live
_ERRORGIT="${?}" _ERRORGIT="${?}"
@ -76,8 +79,9 @@ then
# Now set a variable for the correct build path # Now set a variable for the correct build path
_BUILD_PATH="${_TEMPDIR}/${_BUILD}/images/${_LB_CONFIG}" _BUILD_PATH="${_TEMPDIR}/${_BUILD}/images/${_LB_CONFIG}"
# Drop out some build data for information if something goes wrong. _DATE_START="`date -R`"
echo "`date +%b\ %d\ %H:%M:%S` ${_HOSTNAME} live-build-cgi: begin web build (${_BUILD})." >> /var/log/live 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 # Creating directory for the config/package-lists
mkdir -p "${_BUILD_PATH}"/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 echo "${_LB_CGIPACKAGES}" > "${_BUILD_PATH}"/config/package-lists/cgipackages.list.chroot
fi fi
_DATE_START="`date -R`"
echo "Begin: ${_DATE_START}" > "${_BUILD_PATH}"/log
# Generating config here # Generating config here
if [ "${_ERRORGIT}" -eq "0" ] if [ "${_ERRORGIT}" -eq "0" ]
then then