From df8565263e3ca0c338b03e7d427993207efa741f Mon Sep 17 00:00:00 2001 From: Alexander Lutay Date: Mon, 18 Jun 2018 15:30:22 +0200 Subject: [PATCH] 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 --- templates/scripts/includes/deployment.sh | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/templates/scripts/includes/deployment.sh b/templates/scripts/includes/deployment.sh index 32744aa..64b947a 100755 --- a/templates/scripts/includes/deployment.sh +++ b/templates/scripts/includes/deployment.sh @@ -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