Revert "core: Don't set the 'file' var needlessly"

This reverts commit eaf58d18aa.
This commit is contained in:
Tom Eastep 2016-12-19 10:26:33 -08:00
parent cabef548a6
commit 8dce87e129
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -149,10 +149,13 @@ done
if [ $# -eq 0 ]; then
if [ -f ./shorewallrc ]; then
. ./shorewallrc
file=./shorewallrc
elif [ -f ~/.shorewallrc ]; then
. ~/.shorewallrc || exit 1
file=~/.shorewallrc
elif [ -f /usr/share/shorewall/shorewallrc ]; then
. /usr/share/shorewall/shorewallrc
file=/usr/share/shorewall/shorewallrc
else
fatal_error "No configuration file specified and /usr/share/shorewall/shorewallrc not found"
fi