This commit is contained in:
Hans Karlinius
2024-12-02 17:31:57 +01:00
parent 27449e9cba
commit 51cfddec6b
2 changed files with 23 additions and 15 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: VirtualHere Client name: VirtualHere Client
version: "0.1.330" version: "0.1.331"
slug: vhclient slug: vhclient
description: VirtualHere Client description: VirtualHere Client
arch: arch:
+22 -14
View File
@@ -1,18 +1,26 @@
#!/usr/bin/awk -f #!/command/with-contenv bashio
BEGIN { file="/config/vhclient.ini"
section = $2; touch $file
key = $3;
value = $4; editini() {
found_section = false; awk -f
BEGIN {
section = $1;
key = $2;
value = $3;
found_section = false;
}
/^\[$section\]/ {
found_section = true;
}
END {
print "Found section: $found_section";
}
$file
} }
/^\[$section\]/ { editini $1 $2 $3
found_section = true;
}
END {
print "Found section: $found_section";
}
/config/vhclient.ini