mirror of
https://gitlab.com/shorewall/code.git
synced 2025-08-19 21:24:11 +02:00
Deal with missing 'hostname' utility
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
@@ -3590,7 +3590,13 @@ get_config() {
|
|||||||
VERBOSITY=2
|
VERBOSITY=2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
g_hostname=$(hostname 2> /dev/null)
|
if qt mywhich hostname; then
|
||||||
|
g_hostname=$(hostname 2> /dev/null)
|
||||||
|
elif qt mywhich uname; then
|
||||||
|
g_hostname=$(uname -n 2> /dev/null)
|
||||||
|
else
|
||||||
|
g_hostname=localhost
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -n "$IPSET" ]; then
|
if [ -n "$IPSET" ]; then
|
||||||
case "$IPSET" in
|
case "$IPSET" in
|
||||||
|
Reference in New Issue
Block a user