Use 'fatal_error' to report issues with params and .conf.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-02-14 06:52:43 -08:00
parent 93b3fd9be5
commit 1ae6ed9c10

View File

@ -57,12 +57,10 @@ get_config() {
if [ -r $config ]; then
. $config
else
echo "Cannot read $config! (Hint: Are you root?)" >&2
exit 1
fatal_error "Cannot read $config! (Hint: Are you root?)"
fi
else
echo "$config does not exist!" >&2
exit 2
fatal_error "$config does not exist!"
fi
ensure_config_path