mirror of https://git.envs.net/envs/ops.git
fix gophernicus path and remove old conntracks script
This commit is contained in:
parent
05f2c49184
commit
25b8f32088
|
@ -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
|
|
@ -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"
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue