diff options
author | Richard Nelson <unixabg@gmail.com> | 2013-02-26 18:15:58 -0600 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2013-04-09 05:52:09 +0200 |
commit | 8e7470a31a66bdffa94b6c50c7f1be24c6342bb0 (patch) | |
tree | 0761426e94edaf8ed8df21f968a91b07982eb82e | |
parent | 5874c3f0ea4206c751bb7781a66b061ff616c867 (diff) | |
download | vyos-live-build-8e7470a31a66bdffa94b6c50c7f1be24c6342bb0.tar.gz vyos-live-build-8e7470a31a66bdffa94b6c50c7f1be24c6342bb0.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 86e0b0025..d21e6c041 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 "${LB_ARCHITECTURES}" --archive-areas "${LB_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`" |