2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 03:32:04 +00:00

Fix minor configeth problem on Ubuntu 18.04

This commit is contained in:
GONG Jie 2018-08-03 16:04:31 +08:00
parent fc1c23285e
commit 306cb2b140

View File

@ -650,7 +650,12 @@ elif [ "$1" = "-s" ];then
fi
if [ "$UPDATENODE" = "1" ] || grep "REBOOT=TRUE" /opt/xcat/xcatinfo >/dev/null 2>&1; then
ifdown $str_inst_nic;ifup $str_inst_nic
if [ "$str_os_type" = "debian" ];then
ifdown --force $str_inst_nic
else
ifdown $str_inst_nic
fi
ifup $str_inst_nic
fi
if [ $? -ne 0 ]; then
log_error "ifup $str_inst_nic failed."