diff options
author | Erich Eckner <git@eckner.net> | 2022-08-03 20:43:22 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2022-08-03 20:43:22 +0200 |
commit | 80567d7b4a624331bd333a678b653d4cb8ac3a02 (patch) | |
tree | dd2e743325df1795c3c1a417928c45aaa3620fe2 /colocation-client.in | |
download | colocation-client-80567d7b4a624331bd333a678b653d4cb8ac3a02.tar.xz |
initial commit
Diffstat (limited to 'colocation-client.in')
-rw-r--r-- | colocation-client.in | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/colocation-client.in b/colocation-client.in new file mode 100644 index 0000000..dfb1662 --- /dev/null +++ b/colocation-client.in @@ -0,0 +1,21 @@ +#!/bin/bash + +configuration_file="${1:-#ETC#/colocation-client.conf}" + +jq '{ + colocation_server, + machine: .machines[] +} | { + url: ( + .colocation_server + + "update.php" + + ( + "?machine=" + + .machine.machine + + "&key=" + + .machine.key + ) + ), + values: .machine.values, +}' \ +<"${configuration_file}" |