sysinfo: fix

This commit is contained in:
creme 2021-07-26 14:16:49 +02:00
parent 5ae9613b1d
commit 26ca397d23
Signed by: creme
GPG Key ID: C147C3B7FBDF08D0
1 changed files with 2 additions and 2 deletions

View File

@ -195,13 +195,13 @@ cat<<EOM > "$TMP_JSON"
},
"hedgedoc": {
"desc": "collaborative real time markdown",
"version": "$(curl -vs https://hedgedoc."$DOMAIN"/ 2>&1 | grep 'hedgedoc-version:' | awk '{print $3}')",
"version": "$(w3m -dump -T text/html https://hedgedoc."$DOMAIN"/s/version | sed -n '2,2 p' | awk '{printf $2}')",
"url": "https://hedgedoc.$DOMAIN/",
"server": "core.$DOMAIN"
},
"hydrogen-web": {
"desc": "lightweight matrix client with legacy and mobile browser support",
"version": "$(curl -fs https://hydrogen."$DOMAIN" | grep HYDROGEN_VERSION | awk '{print $3}' | sed -e 's/"//' -e 's/";//g')",
"version": "$(curl -fs https://hydrogen."$DOMAIN"/ | grep HYDROGEN_VERSION | awk '{print $3}' | sed -e 's/"//' -e 's/";//g')",
"url": "https://hydrogen.$DOMAIN/",
"server": "srv01.$DOMAIN"
},