mirror of
https://gitlab.com/shorewall/code.git
synced 2025-02-22 20:51:15 +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
|
ensure_config_path
|
||||||
|
|
||||||
if [ "$1" = Yes ]; then
|
if [ "$1" = Yes ]; then
|
||||||
|
if [ "$(id -u)" -eq 0 ]; then
|
||||||
params=$(find_file params)
|
params=$(find_file params)
|
||||||
|
else
|
||||||
|
params="$g_shorewalldir/params"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -f $params ]; then
|
if [ -f $params ]; then
|
||||||
. $params
|
. $params
|
||||||
|
Loading…
Reference in New Issue
Block a user