mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-03 03:59:16 +01:00
Use 'fatal_error' to report issues with params and .conf.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
93b3fd9be5
commit
1ae6ed9c10
@ -57,12 +57,10 @@ get_config() {
|
|||||||
if [ -r $config ]; then
|
if [ -r $config ]; then
|
||||||
. $config
|
. $config
|
||||||
else
|
else
|
||||||
echo "Cannot read $config! (Hint: Are you root?)" >&2
|
fatal_error "Cannot read $config! (Hint: Are you root?)"
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "$config does not exist!" >&2
|
fatal_error "$config does not exist!"
|
||||||
exit 2
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ensure_config_path
|
ensure_config_path
|
||||||
|
Loading…
Reference in New Issue
Block a user