diff options
author | Richard Nelson <unixabg@gmail.com> | 2013-02-26 18:15:58 -0600 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2013-05-06 14:50:06 +0200 |
commit | 613c5984b6f5e93823deaf4916fcfbcc61ed4abd (patch) | |
tree | 55d6ea82165cf985531b47a5ae5da1811fc3a8b8 | |
parent | 559d7e5497fc1ba9da5b5d5d6af4c3aff283a30a (diff) | |
download | vyos-live-build-613c5984b6f5e93823deaf4916fcfbcc61ed4abd.tar.gz vyos-live-build-613c5984b6f5e93823deaf4916fcfbcc61ed4abd.zip |
Append to log file on errors and not truncate the file on l-b-cgi frontend.
-rwxr-xr-x | frontends/cgi/live-build-cgi.cron | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/cgi/live-build-cgi.cron b/frontends/cgi/live-build-cgi.cron index d69449e17..d3e9c3267 100755 --- a/frontends/cgi/live-build-cgi.cron +++ b/frontends/cgi/live-build-cgi.cron @@ -100,7 +100,7 @@ then lb config ${_CGI_CONFIG_APPEND} --distribution "${LB_DISTRIBUTION}" --binary-images "${LB_BINARY_IMAGES}" --architectures "${LIVE_IMAGE_ARCHITECTURE}" --archive-areas "${LIVE_IMAGE_ARCHIVE_AREAS}" --chroot-filesystem "${LB_CHROOT_FILESYSTEM}" --linux-flavours "${LB_LINUX_FLAVOURS}" --security "${LB_SECURITY}" --apt-indices "${LB_APT_INDICES}" --bootappend-install "${LB_BOOTAPPEND_INSTALL}" --bootappend-live "${LB_BOOTAPPEND_LIVE}" --bootloader "${LB_BOOTLOADER}" --debian-installer "${LB_DEBIAN_INSTALLER}" --iso-application "${LB_ISO_APPLICATION}" --iso-preparer "${LB_ISO_PREPARER}" --iso-publisher "${LB_ISO_PUBLISHER}" --iso-volume "${LB_ISO_VOLUME}" --memtest "${LB_MEMTEST}" --net-root-path "${LB_NET_ROOT_PATH}" --net-root-server "${LB_NET_ROOT_SERVER}" --source-images "${LB_SOURCE_IMAGES}" --source "${LB_SOURCE}" _ERRORCONFIG="${?}" else - echo "Config stage skipped. The git clone produced an error: ${_ERRORGIT}" > "${_BUILD_PATH}"/log + echo "Config stage skipped. The git clone produced an error: ${_ERRORGIT}" >> "${_BUILD_PATH}"/log fi # Run build if config went ok @@ -109,7 +109,7 @@ then lb build >> "${_BUILD_PATH}"/log 2>&1 _ERRORBUILD="${?}" else - echo "Build stage skipped. Config produced an error: ${_ERRORCONFIG}" > "${_BUILD_PATH}"/log + echo "Build stage skipped. Config produced an error: ${_ERRORCONFIG}" >> "${_BUILD_PATH}"/log fi _DATE_END="`date -R`" |