mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-02 05:23:14 +00:00
Feature/sdk improvements (#2879)
* sdk improvements * subcontainer fixes, disable wifi on migration if not in use, filterable interfaces
This commit is contained in:
@@ -31,7 +31,7 @@ impl VersionT for Version {
|
||||
fn up(self, db: &mut Value, _: Self::PreUpRes) -> Result<(), Error> {
|
||||
let host = db["public"]["serverInfo"]["host"].clone();
|
||||
let mut wifi = db["public"]["serverInfo"]["wifi"].clone();
|
||||
wifi["enabled"] = Value::Bool(true);
|
||||
wifi["enabled"] = Value::Bool(!wifi["selected"].is_null());
|
||||
let mut network_interfaces = db["public"]["serverInfo"]["networkInterfaces"].clone();
|
||||
for (k, v) in network_interfaces
|
||||
.as_object_mut()
|
||||
|
||||
Reference in New Issue
Block a user