From 7726f121d2693025ae46f3047d7734c0d03942ad Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Tue, 3 Feb 2015 11:42:31 +0100 Subject: [PATCH 2/6] Add infomation about sapconf version BUG:1174321 --- sapconf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sapconf b/sapconf index c7492be..7a89392 100644 --- a/sapconf +++ b/sapconf @@ -37,7 +37,12 @@ # GLOBAL Variables # +SAPCONF_PACKAGE=`rpm -q sapconf` + export SCRIPTNAME=sapconf +export SAPCONF_MAJOR_VERSION=$(echo $SAPCONF_PACKAGE | cut -d'-' -f2 | cut -d'.' -f1) +export SAPCONF_MINOR_VERSION=$(echo $SAPCONF_PACKAGE | cut -d'-' -f2 | cut -d'.' -f2) +export SAPCONF_BUILD_VERSION=$(echo $SAPCONF_PACKAGE | cut -d'-' -f3 | cut -d'.' -f1) export LOGDIR=/var/log/sap export LOGFILE=${LOGDIR}/${SCRIPTNAME}-$(date +"%Y%m%d%H%M").log @@ -922,7 +922,7 @@ if [ $1 ]; then usage fi -out "###### ${SCRIPTNAME} by Red Hat ######" +out "###### ${SCRIPTNAME}-${SAPCONF_MAJOR_VERSION}.${SAPCONF_MINOR_VERSION}-${SAPCONF_BUILD_VERSION} by Red Hat ######" if [ $CHECK_ONLY == 0 ]; then out "###### Preparing System for SAP Installation ######" else -- 2.1.0