diff options
author | Stefanie Eckner <stefanie@eckner.net> | 2024-03-16 11:34:38 +0100 |
---|---|---|
committer | Stefanie Eckner <stefanie@eckner.net> | 2024-03-16 11:34:38 +0100 |
commit | b247f526f37871af06bf8a94d61524f2db8d85c6 (patch) | |
tree | c97f304ebd6d8ec94ec25681c6d1102d7463ba87 | |
parent | 31452f0df30695c6e9bc1de7ad50194149ca1e5d (diff) | |
download | computer-time-limit-b247f526f37871af06bf8a94d61524f2db8d85c6.tar.xz |
send hostname, too
-rwxr-xr-x | computer-time-limit | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/computer-time-limit b/computer-time-limit index 4b826e8..f891f25 100755 --- a/computer-time-limit +++ b/computer-time-limit @@ -21,12 +21,13 @@ fi . /etc/computer-time-limit.conf sende_msg() { + data="$(uname -n) $1" curl \ -s \ -X POST \ - --data "msg=$1" \ + --data "msg=${data}" \ --data "sig=$( - echo "$1" \ + echo "${data}" \ | signify -S -s "$2" -m /dev/stdin -x /dev/stdout \ | base64 -w0 )" \ |