diff --git a/evomaintenance.sh b/evomaintenance.sh index 3782126..e52c11b 100644 --- a/evomaintenance.sh +++ b/evomaintenance.sh @@ -34,19 +34,22 @@ if [ "${TEXTE}" = "" ]; then fi # recapitulatif -echo "hostname = ${HOSTNAME}" -echo "user = ${USER}" -echo "IP = ${IP}" -echo "begin date = ${BEGIN_YEAR} ${BEGIN_DATE}" -echo "details = ${TEXTE}" +BLOB=$(cat <> "${LOGFILE}" +echo "----------\n${BLOB}" >> "${LOGFILE}" # git commit GIT_BIN=$(command -v git) @@ -54,7 +57,7 @@ GIT_BIN=$(command -v git) if test -x "${GIT_BIN}"; then export GIT_DIR=/etc/.git ${GIT_BIN} add . - ${GIT_BIN} commit --all --message "${LOG_TEXTE}" --author="${USER} <${USER}@evolix.net>" --quiet + ${GIT_BIN} commit --all --message "${TEXTE}" --message "${BLOB}" --author="${USER} <${USER}@evolix.net>" --quiet fi # insert into PG