mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
swmodd: avoid uci-defaults script failure
Keep uci-defaults script from failing if there are no containers.
This commit is contained in:
parent
06b9f7eb00
commit
b673daf265
1 changed files with 1 additions and 2 deletions
|
|
@ -34,9 +34,8 @@ migrate_execenv_ref() {
|
||||||
UCI_CONFIG_DIR="${lxcpath}"
|
UCI_CONFIG_DIR="${lxcpath}"
|
||||||
config_load ocicontainer
|
config_load ocicontainer
|
||||||
config_foreach set_execenv_ref du_eu_assoc ${env_name}
|
config_foreach set_execenv_ref du_eu_assoc ${env_name}
|
||||||
|
uci -q -c "${lxcpath}" commit ocicontainer
|
||||||
fi
|
fi
|
||||||
|
|
||||||
uci -q -c "${lxcpath}" commit ocicontainer
|
|
||||||
}
|
}
|
||||||
|
|
||||||
migrate_execenv_ref
|
migrate_execenv_ref
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue