Modified l-b-cgi cron to move submitted build file to temporary build directory after reading.
This commit is contained in:
parent
89d3b33f49
commit
39cf68130e
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue