Syslogging for placeholder passwords

This commit is contained in:
Simone Caronni 2012-01-20 16:45:45 +01:00
parent a942783541
commit a82230d945

View File

@ -9,7 +9,7 @@ if [ $# -ne 1 ]; then
fi fi
grep -q '^[^#].*_PASSWORD@@' $1 grep -q '^[^#].*_PASSWORD@@' $1
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
echo "Error: Default password in config" logger -st bacula-dir "Error: placeholder password in config file $1"
exit 6 exit 6
fi fi