Only look in the specified directory for params when compiling as non-root.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-02-11 06:36:32 -08:00
parent a312bfbb42
commit 9f9220f854

View File

@ -35,7 +35,11 @@ get_config() {
ensure_config_path
if [ "$1" = Yes ]; then
if [ "$(id -u)" -eq 0 ]; then
params=$(find_file params)
else
params="$g_shorewalldir/params"
fi
if [ -f $params ]; then
. $params