mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-22 06:10:42 +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
|
||||
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 "
|
||||
$g_firewall version
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user