TT#38783 Remove unnecessary /var/log/deployment.log

First of all the information here was outdated and confusing.
Moreover it duplicates info in deployment-installer-debug.log.

The line "NGCP_INSTALLER_CMDLINE=..." didn't represent the actual
running command for several years already. Also the line SCRIPT_VERSION
is already printed to all log files several times already.
The only missing line was CMD_LINE, so printing it if debug is enabled.

Change-Id: I19255354c8314201992385f5b5bb7e60910bc26a
changes/93/21993/2
Alexander Lutay 8 years ago
parent 2e3f01f3e6
commit df8565263e

@ -324,6 +324,7 @@ set_deploy_status "checkBootParam"
if checkBootParam debugmode ; then
DEBUG_MODE=true
enable_trace
logit "CMD_LINE: ${CMD_LINE}"
fi
disable_systemd_tmpfiles_clean
@ -1633,14 +1634,6 @@ EOT
if [ -r /tmp/grml-debootstrap.log ] ; then
cp /tmp/grml-debootstrap.log "${TARGET}"/var/log/
fi
{
echo "# deployment.sh running on $(date)"
echo "SCRIPT_VERSION=${SCRIPT_VERSION}"
echo "CMD_LINE=\"${CMD_LINE}\""
echo "NGCP_INSTALLER_CMDLINE=\"ngcp-installer $ROLE $IP1 $IP2 $EADDR $EIFACE $IP_HA_SHARED\""
} > "${TARGET}"/var/log/deployment.log
fi
case "$DEBIAN_RELEASE" in

Loading…
Cancel
Save