Compare commits

...

1 Commits

Author SHA1 Message Date
liuyu
1ca4466da9 fix: get hostname bug 2024-07-16 17:39:16 +08:00

View File

@@ -697,7 +697,8 @@ main(){
log_info 'Installation wizard is complete\n'
ip=$(ping -c 1 "$HOSTNAME" |awk -F '[()]' '/icmp_seq/{print $2}')
HOSTNAME=$(hostname)
ip=$(ping -c 1 "$HOSTNAME" |awk -F '[ :]' '/icmp_seq/{print $4}')
# install complete
echo -e " Terminus is running"