This commit is contained in:
2024-06-30 22:17:57 -04:00
parent f15fb7d530
commit 5a8a8f0932

View File

@@ -77,7 +77,7 @@ undim="\e[0m"
# disk usage: ignore zfs, squashfs & tmpfs # 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) 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 for line in "${dfs[@]}"; do
# get disk usage # get disk usage
@@ -213,7 +213,7 @@ for i in ${!services[@]}; do
done done
out+="\n" out+="\n"
printf "\nServices:\n" printf "\nServices\n"
printf "$out" | column -ts $',' | sed -e 's/^/ /' printf "$out" | column -ts $',' | sed -e 's/^/ /'
EOF EOF
@@ -235,7 +235,7 @@ for jail in ${jails[@]}; do
out+="$jail,$failed,$totalfailed,$banned,$totalbanned\n" out+="$jail,$failed,$totalfailed,$banned,$totalbanned\n"
done done
printf "\nfail2ban status:\n" printf "\nfail2ban status\n"
printf $out | column -ts $',' | sed -e 's/^/ /' printf $out | column -ts $',' | sed -e 's/^/ /'
EOF EOF
@@ -243,7 +243,7 @@ EOF
cat <<- 'EOF' >> "$script" cat <<- 'EOF' >> "$script"
echo "\ echo "\
Links (ctrl+click to follow): Links (ctrl+click to follow)
cockpit (administrators): http://localhost:9090 cockpit (administrators): http://localhost:9090
robot cam...............: http://localhost:8888 robot cam...............: http://localhost:8888
robot computer..........: vnc://192.168.16.101:5900 robot computer..........: vnc://192.168.16.101:5900