mirror of
https://gitlab.com/shorewall/code.git
synced 2025-02-22 04:31:23 +01:00
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:
parent
a312bfbb42
commit
9f9220f854
@ -35,7 +35,11 @@ get_config() {
|
||||
ensure_config_path
|
||||
|
||||
if [ "$1" = Yes ]; then
|
||||
params=$(find_file params)
|
||||
if [ "$(id -u)" -eq 0 ]; then
|
||||
params=$(find_file params)
|
||||
else
|
||||
params="$g_shorewalldir/params"
|
||||
fi
|
||||
|
||||
if [ -f $params ]; then
|
||||
. $params
|
||||
|
Loading…
Reference in New Issue
Block a user