File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ for ip in $ips; do
110110done
111111
112112# Updating NAT
113- pub_ip=$( curl -s https://www.hestiacp.com/what-is-my-ip/)
113+ pub_ip=$( curl --ipv4 - s https://www.hestiacp.com/what-is-my-ip/)
114114if [ ! -e " $HESTIA /data/ips/$pub_ip " ]; then
115115 if [ -z " $( grep -R " $pub_ip " $HESTIA /data/ips/) " ]; then
116116 ip=$( ls -t $HESTIA /data/ips/ | head -n1)
Original file line number Diff line number Diff line change @@ -1367,7 +1367,7 @@ if [ "$exim" = 'yes' ] && [ "$mysql" = 'yes' ]; then
13671367fi
13681368
13691369# Configuring system ips
1370- $HESTIA /bin/v-update-sys-ip
1370+ $HESTIA /bin/v-update-sys-ip > /dev/null 2>&1
13711371
13721372# Get main ip
13731373ip=$( ip addr| grep ' inet ' | grep global| head -n1| awk ' {print $2}' | cut -f1 -d/)
13821382pub_ip=$( curl --ipv4 -s https://www.hestiacp.com/what-is-my-ip/)
13831383
13841384if [ ! -z " $pub_ip " ] && [ " $pub_ip " != " $ip " ]; then
1385- $HESTIA /bin/v-change-sys-ip-nat $ip $pub_ip
1385+ $HESTIA /bin/v-change-sys-ip-nat $ip $pub_ip > /dev/null 2>&1
13861386 ip=$pub_ip
13871387fi
13881388
Original file line number Diff line number Diff line change @@ -1339,7 +1339,7 @@ $HESTIA/bin/v-change-user-shell admin nologin
13391339$HESTIA /bin/v-change-user-language admin $lang
13401340
13411341# Configuring system IPs
1342- $HESTIA /bin/v-update-sys-ip
1342+ $HESTIA /bin/v-update-sys-ip > /dev/null 2>&1
13431343
13441344# Get main IP
13451345ip=$( ip addr| grep ' inet ' | grep global| head -n1| awk ' {print $2}' | cut -f1 -d/)
13531353pub_ip=$( curl --ipv4 -s https://www.hestiacp.com/what-is-my-ip/)
13541354if [ ! -z " $pub_ip " ] && [ " $pub_ip " != " $ip " ]; then
13551355 echo " $HESTIA /bin/v-update-sys-ip" >> /etc/rc.local
1356- $HESTIA /bin/v-change-sys-ip-nat $ip $pub_ip
1356+ $HESTIA /bin/v-change-sys-ip-nat $ip $pub_ip > /dev/null 2>&1
13571357 ip=$pub_ip
13581358fi
13591359
You can’t perform that action at this time.
0 commit comments