TT#37257 Do not cleanup /var/log/ngcp-installer.log

We do not use /tmp/ngcp-installer.log since mr6.5 and
using directly /var/log/ngcp-installer.log inside chroot.

Change-Id: I35b098fb09046a0fbc0a9bfc56bd125362c34fd0
changes/70/23570/2
Alexander Lutay 7 years ago
parent 63858ae826
commit d759835966

@ -1434,18 +1434,15 @@ EOT
cp /etc/network/interfaces "${TARGET}/etc/network/"
unset method netcardconf
else
die "Error during installation of ngcp. Find details at: ${TARGET}/tmp/ngcp-installer.log ${TARGET}/tmp/ngcp-installer-debug.log"
die "Error during installation of ngcp. Find details at: ${TARGET}/var/log/ngcp-installer.log ${TARGET}/tmp/ngcp-installer-debug.log"
fi
echo "Temporary files cleanup ..."
find "${TARGET}/var/log" -type f -size +0 -not -name \*.ini -exec sh -c ":> \${1}" sh {} \;
find "${TARGET}/var/log" -type f -size +0 -not -name \*.ini -not -name ngcp-installer.log -exec sh -c ":> \${1}" sh {} \;
:>$TARGET/var/run/utmp
:>$TARGET/var/run/wtmp
echo "Backup of the installer logfiles for later investigation ..."
if [ -r "${TARGET}"/tmp/ngcp-installer.log ] ; then
cp "${TARGET}"/tmp/ngcp-installer.log "${TARGET}"/var/log/
fi
if [ -r "${TARGET}"/tmp/ngcp-installer-debug.log ] ; then
cp "${TARGET}"/tmp/ngcp-installer-debug.log "${TARGET}"/var/log/
fi

Loading…
Cancel
Save