fix gophernicus path and remove old conntracks script

This commit is contained in:
creme 2021-01-10 10:34:40 +01:00
parent 05f2c49184
commit 25b8f32088
Signed by: creme
GPG Key ID: C147C3B7FBDF08D0
2 changed files with 1 additions and 16 deletions

View File

@ -1,15 +0,0 @@
#!/usr/bin/env bash
[ "$(id -u)" -ne 0 ] && printf 'Please run as root!\n' && exit 1
log_file='/var/log/envs_conntrack.log'
c_local="$(tail -1 /var/log/conntrack.log | awk '{print $17}')"
lxc_c=( $(for i in $(lxc-ls --active -1); do tail -1 /var/lib/lxc/"$i"/rootfs/var/log/conntrack.log | awk '{print $15}' ; done) )
lxc_sum="$(echo $(printf %d+ ${lxc_c[@]})0 | bc)"
c_sum="$((c_local + lxc_sum))"
echo "conntrack: $c_sum" >> "$log_file"
exit 0

View File

@ -189,7 +189,7 @@ cat<<EOM > "$TMP_JSON"
},
"gophernicus": {
"desc": "modern full-featured (and hopefully) secure gopher daemon",
"version": "$(/usr/sbin/gophernicus -v | sed 's/Gophernicus\///' | awk '{print $1}')",
"version": "$(/usr/local/sbin/gophernicus -v | sed 's/Gophernicus\///' | awk '{print $1}')",
"url": "gopher://$DOMAIN/",
"server": "core.$DOMAIN"
},