Amelioration du test $IS_EVOMAINTENANCECONF

This commit is contained in:
Gregory Colpart 2011-05-22 23:57:35 +02:00
parent 0edf60489f
commit bd781da770

View file

@ -224,9 +224,7 @@ fi
# Verification de la configuration d'evomaintenance
if [ "$IS_EVOMAINTENANCECONF" = 1 ]; then
f=/etc/evomaintenance.cf
( grep -q "^HOSTNAME=`hostname`$" $f \
&& grep "^export PGPASSWORD" $f |grep -qv "your-passwd" \
&& grep "^EVOMAINTMAIL" $f |grep -qv "evomaintenance-your-host@example.com" \
( grep "^export PGPASSWORD" $f |grep -qv "your-passwd" \
&& grep "^PGDB" $f |grep -qv "your-db" \
&& grep "^PGTABLE" $f |grep -qv "your-table" \
&& grep "^PGHOST" $f |grep -qv "your-pg-host" \