Skip to content

Commit bb8f175

Browse files
author
Kristan Kenney
authored
Merge pull request hestiacp#1831 from cmstew/fix-list-ips-script
Fix shell list for list ips script
2 parents a6e0851 + 750058c commit bb8f175

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

bin/v-list-sys-ips

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,16 @@ json_list() {
5353

5454
# SHELL list function
5555
shell_list() {
56-
echo "IP MASK NAT HELO STATUS WEB DATE"
57-
echo "-- ---- --- ---- ------ --- ----"
56+
echo "IP MASK NAT HELO STATUS WEB DATE"
57+
echo "-- ---- --- -------------------- ------ --- ----"
5858
while read IP; do
5959
source $HESTIA/data/ips/$IP
6060
if [ -z "$NAT" ]; then
6161
NAT='no'
6262
fi
63+
if [ -z "$HELO" ]; then
64+
HELO='unset'
65+
fi
6366
echo "$IP $NETMASK $NAT $HELO $STATUS $U_WEB_DOMAINS $DATE"
6467
done < <(ls $HESTIA/data/ips/)
6568
}

0 commit comments

Comments
 (0)