add riot-web version to sysinfo

This commit is contained in:
creme 2020-01-06 18:08:50 +01:00
parent 3e85e879c9
commit 7ea3c7b1b3
Signed by: creme
GPG Key ID: C147C3B7FBDF08D0
1 changed files with 7 additions and 1 deletions

View File

@ -11,7 +11,8 @@ DOMAIN='envs.net'
###
# define packages by category for sysinfo.php Page
services=(0x0 bbj cryptpad getwtxt gitea gophernicus jetforce mariadb-server matrix nginx openssh-server privatebin searx termbin tt-rss thelounge znc)
services=(0x0 bbj cryptpad getwtxt gitea gophernicus jetforce mariadb-server matrix nginx openssh-server
privatebin riot-web searx termbin tt-rss thelounge znc)
readarray -t sorted_services < <(printf '%s\n' "${services[@]}" | sort)
@ -154,6 +155,11 @@ cat<<EOM > "$TMP_JSON"
"version": "$(lxc-attach -n pb -- bash -c "awk '/Current version:/ {print \$3}' /var/www/PrivateBin/README.md | sed '$ s/*$//'")",
"url": "https://pb.envs.net/"
},
"riot-web": {
"desc": "a universal secure chat app for matrix (web-client)",
"version": "$(lxc-attach -n matrix -- bash -c "dpkg-query -f '\${Version}\n' -W riot-web")",
"url": "https://matrix.envs.net/"
},
"searx": {
"desc": "privacy-respecting metasearch engine",
"version": "$(curl -s https://searx."$DOMAIN"/config | jq -Mr .version)",