Fix motd
This commit is contained in:
@@ -77,7 +77,7 @@ undim="\e[0m"
|
||||
|
||||
# disk usage: ignore zfs, squashfs & tmpfs
|
||||
while IFS= read -r line; do dfs+=("$line"); done < <(df -H -x zfs -x squashfs -x tmpfs -x devtmpfs -x overlay --output=target,pcent,size | tail -n+2)
|
||||
printf "\nDisk usage:\n"
|
||||
printf "\nDisk usage\n"
|
||||
|
||||
for line in "${dfs[@]}"; do
|
||||
# get disk usage
|
||||
@@ -213,7 +213,7 @@ for i in ${!services[@]}; do
|
||||
done
|
||||
out+="\n"
|
||||
|
||||
printf "\nServices:\n"
|
||||
printf "\nServices\n"
|
||||
printf "$out" | column -ts $',' | sed -e 's/^/ /'
|
||||
EOF
|
||||
|
||||
@@ -235,7 +235,7 @@ for jail in ${jails[@]}; do
|
||||
out+="$jail,$failed,$totalfailed,$banned,$totalbanned\n"
|
||||
done
|
||||
|
||||
printf "\nfail2ban status:\n"
|
||||
printf "\nfail2ban status\n"
|
||||
printf $out | column -ts $',' | sed -e 's/^/ /'
|
||||
EOF
|
||||
|
||||
@@ -243,7 +243,7 @@ EOF
|
||||
cat <<- 'EOF' >> "$script"
|
||||
echo "\
|
||||
|
||||
Links (ctrl+click to follow):
|
||||
Links (ctrl+click to follow)
|
||||
cockpit (administrators): http://localhost:9090
|
||||
robot cam...............: http://localhost:8888
|
||||
robot computer..........: vnc://192.168.16.101:5900
|
||||
|
||||
Reference in New Issue
Block a user