swmodd: avoid uci-defaults script failure

Keep uci-defaults script from failing if there are no containers.
This commit is contained in:
Erik Karlsson 2025-03-04 16:09:40 +01:00
parent 06b9f7eb00
commit b673daf265

View file

@ -34,9 +34,8 @@ migrate_execenv_ref() {
UCI_CONFIG_DIR="${lxcpath}"
config_load ocicontainer
config_foreach set_execenv_ref du_eu_assoc ${env_name}
fi
uci -q -c "${lxcpath}" commit ocicontainer
fi
}
migrate_execenv_ref