mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-03 03:59:16 +01:00
Don't try to get firewall version if not root
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
66c2fca2b0
commit
bcb2573918
@ -680,7 +680,7 @@ version_command() {
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ -f $g_firewall ]; then
|
if [ "$(id -u)" -eq 0 -a -f $g_firewall ]; then
|
||||||
echo $g_echo_n "$g_firewall was compiled by Shorewall version "
|
echo $g_echo_n "$g_firewall was compiled by Shorewall version "
|
||||||
$g_firewall version
|
$g_firewall version
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user