bacula/bacula-checkconf
Tom "spot" Callaway 99bb2e4ea2 convert to systemd
2011-09-08 12:31:35 -04:00

18 lines
331 B
Bash

#!/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