test
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user