Browse Source

Merge pull request #948 from hestiacp/fix/2020-07_installer-local-ip-missing

Local ip not defind in ubuntu installer
Raphael Schneeberger 5 năm trước cách đây
mục cha
commit
d7c8d98e64
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      install/hst-install-ubuntu.sh

+ 1 - 0
install/hst-install-ubuntu.sh

@@ -1766,6 +1766,7 @@ $HESTIA/bin/v-update-sys-ip > /dev/null 2>&1
 
 
 # Get main IP
 # Get main IP
 ip=$(ip addr|grep 'inet '|grep global|head -n1|awk '{print $2}'|cut -f1 -d/)
 ip=$(ip addr|grep 'inet '|grep global|head -n1|awk '{print $2}'|cut -f1 -d/)
+local_ip=$ip
 
 
 # Configuring firewall
 # Configuring firewall
 if [ "$iptables" = 'yes' ]; then
 if [ "$iptables" = 'yes' ]; then