bacula/bacula-checkconf

18 lines
331 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
echo "Error: Default password in config"
exit 6
fi
exit 0