MT#4497 Add deployment.sh logging

ksolomko/vlan
Alexander Lutay 13 years ago
parent 4eb70e408b
commit a7c3140457

@ -2,6 +2,10 @@
# Purpose: automatically install Debian + sip:provider platform
################################################################################
INSTALL_LOG='/tmp/deployment-installer-debug.log'
exec > >(tee -a $INSTALL_LOG )
exec 2> >(tee -a $INSTALL_LOG >&2)
# set version to git commit ID
SCRIPT_VERSION="%SCRIPT_VERSION%"
@ -1989,6 +1993,10 @@ rm -f ${TARGET}/config_*yml
rm -f ${TARGET}/constants_*.yml
rm -f ${TARGET}/ngcp-installer*deb
if [ -r "${INSTALL_LOG}" ] && [ -d "${TARGET}"/var/log/ ] ; then
cp "${INSTALL_LOG}" "${TARGET}"/var/log/
fi
# don't leave any mountpoints
sync
umount ${TARGET}/proc 2>/dev/null || true

Loading…
Cancel
Save