bacula/bacula-checkconf

18 lines
360 B
Plaintext
Raw Normal View History

2011-09-08 16:31:35 +00:00
#!/bin/sh
# Check if we still have our @@PLACEHOLDERS@@ in the config.
# If yes, refuse to start, the user has never touched the config.
if [ $# -ne 1 ]; then
echo "Usage: $0 [configfile]"
exit 1
fi
grep -q '^[^#].*_PASSWORD@@' $1
if [ $? -eq 0 ]; then
2012-01-20 15:45:45 +00:00
logger -st bacula-dir "Error: placeholder password in config file $1"
2011-09-08 16:31:35 +00:00
exit 6
fi
exit 0