core: Fail without a rc file and correct error msg

Abort Shorewall-core's installer execution if no Rc file is detected.

 - Correct the error message

Signed-off-by: Matt Darfeuille <matdarf@gmail.com>
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Matt Darfeuille 2017-02-20 18:52:02 +01:00 committed by Tom Eastep
parent 22b044f350
commit 50a9b4cc6a
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -247,7 +247,7 @@ case "$HOST" in
esac
if [ -z "$file" ]; then
if $HOST = linux; then
if [ $HOST = linux ]; then
file=shorewallrc.default
else
file=shorewallrc.${HOST}
@ -260,7 +260,8 @@ if [ -z "$file" ]; then
echo "" >&2
echo "Example:" >&2
echo "" >&2
echo " ./install.sh $file" &>2
echo " ./install.sh $file" >&2
exit 1
fi
if [ -n "$DESTDIR" ]; then