sysinfo: optimize

This commit is contained in:
creme 2021-07-26 15:29:14 +02:00
parent 26ca397d23
commit 412bc71a00
Signed by: creme
GPG Key ID: C147C3B7FBDF08D0
2 changed files with 4 additions and 4 deletions

View File

@ -113,7 +113,7 @@ cat<<EOM > "$TMP_JSON"
"description": "envs.net is a minimalist, non-commercial shared linux system and will always be free to use.", "description": "envs.net is a minimalist, non-commercial shared linux system and will always be free to use.",
"located": "germany", "located": "germany",
"maintainer": "Sven Kinne (~creme) - creme@envs.net", "maintainer": "Sven Kinne (~creme) - creme@envs.net",
"website": "https://$DOMAIN", "website": "https://$DOMAIN/",
"signup_url": "https://$DOMAIN/signup/", "signup_url": "https://$DOMAIN/signup/",
"gopher": "gopher://$DOMAIN/", "gopher": "gopher://$DOMAIN/",
"gemini": "gemini://$DOMAIN/", "gemini": "gemini://$DOMAIN/",
@ -195,13 +195,13 @@ cat<<EOM > "$TMP_JSON"
}, },
"hedgedoc": { "hedgedoc": {
"desc": "collaborative real time markdown", "desc": "collaborative real time markdown",
"version": "$(w3m -dump -T text/html https://hedgedoc."$DOMAIN"/s/version | sed -n '2,2 p' | awk '{printf $2}')", "version": "$(curl -Is https://hedgedoc."$DOMAIN"/ | awk '/^hedgedoc-version:/{print $2}'|tr -d "\015")",
"url": "https://hedgedoc.$DOMAIN/", "url": "https://hedgedoc.$DOMAIN/",
"server": "core.$DOMAIN" "server": "core.$DOMAIN"
}, },
"hydrogen-web": { "hydrogen-web": {
"desc": "lightweight matrix client with legacy and mobile browser support", "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"/ | awk '/HYDROGEN_VERSION/ {print $3}' | sed -e 's/"//' -e 's/";//g')",
"url": "https://hydrogen.$DOMAIN/", "url": "https://hydrogen.$DOMAIN/",
"server": "srv01.$DOMAIN" "server": "srv01.$DOMAIN"
}, },

View File

@ -71,7 +71,7 @@ cat << EOM > "$TMP_JSON"
"description": "envs.net is a minimalist, non-commercial shared linux system and will always be free to use.", "description": "envs.net is a minimalist, non-commercial shared linux system and will always be free to use.",
"located": "germany", "located": "germany",
"maintainer": "Sven Kinne (~creme) - creme@envs.net", "maintainer": "Sven Kinne (~creme) - creme@envs.net",
"website": "https://$DOMAIN", "website": "https://$DOMAIN/",
"signup_url": "https://$DOMAIN/signup/", "signup_url": "https://$DOMAIN/signup/",
"gopher": "gopher://$DOMAIN/", "gopher": "gopher://$DOMAIN/",
"gemini": "gemini://$DOMAIN/", "gemini": "gemini://$DOMAIN/",