From 39cf68130ebfc9f52968263b112de4f18b912569 Mon Sep 17 00:00:00 2001 From: Richard Nelson Date: Fri, 10 May 2013 14:29:03 -0500 Subject: Modified l-b-cgi cron to move submitted build file to temporary build directory after reading. --- frontends/cgi/live-build-cgi.cron | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'frontends') diff --git a/frontends/cgi/live-build-cgi.cron b/frontends/cgi/live-build-cgi.cron index 7f661002a..1b9d460a2 100755 --- a/frontends/cgi/live-build-cgi.cron +++ b/frontends/cgi/live-build-cgi.cron @@ -70,6 +70,9 @@ then git clone ${_LB_GIT} "${_TEMPDIR}"/"${_BUILD}" >> /var/log/live _ERRORGIT="${?}" + # Moving build file to the tempdir and remove from submission area. + mv "${_TEMPDIR}"/"${_BUILD}".build "${_TEMPDIR}"/"${_BUILD}"/ + # Sanity check to default to something since we are going to build from git clone. if [ -z "${_LB_CONFIG}" ] then @@ -145,7 +148,7 @@ Here's a list of all build-options that were used to build your image: EOF - cat "${_TEMPDIR}"/"${_BUILD}".build >> "${_DESTDIR}"/"${_BUILD}"/mail + cat "${_TEMPDIR}"/"${_BUILD}"/"${_BUILD}".build >> "${_DESTDIR}"/"${_BUILD}"/mail # Moving binary image #if ls "${_TEMPDIR}"/"${_BUILD}"/binary*.* > /dev/null 2>&1 @@ -162,7 +165,7 @@ EOF fi # Moving build - mv "${_TEMPDIR}"/"${_BUILD}".build "${_DESTDIR}"/"${_BUILD}"/build + mv "${_TEMPDIR}"/"${_BUILD}"/"${_BUILD}".build "${_DESTDIR}"/"${_BUILD}"/build # Moving log mv "${_BUILD_PATH}"/log "${_DESTDIR}"/"${_BUILD}" -- cgit v1.2.3