mirror of
https://github.com/unraid/webgui.git
synced 2026-01-06 01:29:54 -06:00
docker: only delete IP when it exists
This commit is contained in:
@@ -458,7 +458,7 @@ docker_network_start(){
|
||||
[[ ! $IPS =~ $IPV4 ]] && run ip addr add $IPV4 metric $INDEX dev $VHOST
|
||||
log "prepared network $VHOST for host access"
|
||||
else
|
||||
if [[ -e $SYSTEM/$VHOST ]]; then
|
||||
if [[ -n $IPV4 && -e $SYSTEM/$VHOST ]]; then
|
||||
# remove parent IPv4 address from vhost interface
|
||||
run ip addr del $IPV4 metric $INDEX dev $VHOST
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user