mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-20 17:58:07 +02:00
Don't verify IP and SHOREWALL_SHELL setting when compiling for export
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
2a9272ccd1
commit
9d299ef866
@ -211,6 +211,7 @@ get_config() {
|
|||||||
LOG_VERBOSITY=-1
|
LOG_VERBOSITY=-1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z "$g_export" -a "$(id -u)" = 0 ]; then
|
||||||
if [ -n "$SHOREWALL_SHELL" -a -z "$g_export" ]; then
|
if [ -n "$SHOREWALL_SHELL" -a -z "$g_export" ]; then
|
||||||
if [ ! -x "$SHOREWALL_SHELL" ]; then
|
if [ ! -x "$SHOREWALL_SHELL" ]; then
|
||||||
echo " WARNING: The program specified in SHOREWALL_SHELL does not exist or is not executable; falling back to /bin/sh" >&2
|
echo " WARNING: The program specified in SHOREWALL_SHELL does not exist or is not executable; falling back to /bin/sh" >&2
|
||||||
@ -236,6 +237,10 @@ get_config() {
|
|||||||
else
|
else
|
||||||
IP='ip'
|
IP='ip'
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
[ -n "$SHOREWALL_SHELL" ] || SHOREWALL_SHELL=/bin/sh
|
||||||
|
[ -n "$IP" ] || IP='ip'
|
||||||
|
fi
|
||||||
|
|
||||||
case $VERBOSITY in
|
case $VERBOSITY in
|
||||||
-1|0|1|2)
|
-1|0|1|2)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user