déplacement des variables pour les binaires
This commit is contained in:
parent
2f249eda73
commit
fe0eccd53a
|
@ -15,6 +15,9 @@ test -f /etc/evomaintenance.cf && . /etc/evomaintenance.cf
|
|||
|
||||
PATH=${PATH}:/usr/sbin
|
||||
|
||||
SENDMAIL=$(command -v sendmail)
|
||||
GIT_BIN=$(command -v git)
|
||||
|
||||
WHO=$(LC_ALL=C who -m)
|
||||
USER=$(echo ${WHO} | cut -d" " -f1)
|
||||
IP=$(echo ${WHO} | cut -d" " -f6 | sed -e "s/^(// ; s/)$//")
|
||||
|
@ -52,7 +55,6 @@ echo "----------- ${NOW_ISO} ---------------" >> "${LOGFILE}"
|
|||
echo "${BLOB}" >> "${LOGFILE}"
|
||||
|
||||
# git commit
|
||||
GIT_BIN=$(command -v git)
|
||||
GIT_COMMITS=""
|
||||
|
||||
if test -x "${GIT_BIN}"; then
|
||||
|
@ -90,8 +92,6 @@ VALUES ('${HOSTNAME}','${USER}','${IP}','${BEGIN_DATE}',now(),'${SQL_TEXTE}') "
|
|||
psql ${PGDB} ${PGTABLE} -h ${PGHOST}
|
||||
|
||||
# send mail
|
||||
SENDMAIL=$(command -v sendmail)
|
||||
|
||||
MAIL_TEXTE=$(echo "${TEXTE}" | sed "s@/@\\\\\/@g")
|
||||
MAIL_GIT_COMMITS=$(echo "${GIT_COMMITS}" | sed "s@/@\\\\\/@g")
|
||||
|
||||
|
|
Loading…
Reference in a new issue