From 4f54f6473d245d1812304c8b3a16908586253905 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Fri, 2 Nov 2018 10:06:06 +0100 Subject: [PATCH] =?UTF-8?q?Finallement=20on=20pr=C3=A9f=C3=A8re=20que=20PG?= =?UTF-8?q?=20ne=20soit=20pas=20silencieux?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- evomaintenance.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evomaintenance.sh b/evomaintenance.sh index 2e01c02..1d22d71 100755 --- a/evomaintenance.sh +++ b/evomaintenance.sh @@ -185,7 +185,7 @@ fi SQL_TEXTE=`echo "${TEXTE}" | sed "s/'/''/g"` PG_QUERY="INSERT INTO evomaint(hostname,userid,ipaddress,begin_date,end_date,details) VALUES ('${HOSTNAME}','${USER}','${IP}','${BEGIN_DATE}',now(),'${SQL_TEXTE}')" -echo "${PG_QUERY}" | psql ${PGDB} ${PGTABLE} -h ${PGHOST} --quiet +echo "${PG_QUERY}" | psql ${PGDB} ${PGTABLE} -h ${PGHOST} # send mail MAIL_TEXTE=$(echo "${TEXTE}" | sed -e "s@/@\\\\\/@g ; s@&@\\\\&@")