4 changed files with 20 additions and 16 deletions
@ -1,11 +1,15 @@ |
|||
#!/bin/bash |
|||
|
|||
echo "Welcome to $(hostname)" |
|||
echo "Welcome to $(hostname -f)" |
|||
echo "$(date)" |
|||
echo "$(lsb_release -sd) $(uname -rm)" |
|||
upgrades=$(apt list -qq --upgradable 2> /dev/null | wc -l) |
|||
if [[ $upgrades == 0 ]]; then |
|||
printf "All packages are up to date.\n\n" |
|||
if [[ $upgrades -eq 0 ]]; then |
|||
echo "All packages are up to date." |
|||
elif [[ $upgrades -eq 1 ]]; then |
|||
echo "$upgrades package can be upgraded. Run 'apt list --upgradable' to see it." |
|||
elif [[ $upgrades -gt 1 ]]; then |
|||
echo "$upgrades packages can be upgraded. Run 'apt list --upgradable' to see them." |
|||
else |
|||
printf "$upgrades packages can be upgraded. Run 'apt list --upgradable' to see them.\n\n" |
|||
echo "Error getting list of upgradeable packages. Check your package system." |
|||
fi |
@ -0,0 +1,5 @@ |
|||
#!/bin/bash |
|||
|
|||
echo "Containers:" |
|||
podman ps -a --format=' NAMES\tIMAGE\tCREATED\tSTATUS\n {{.Names}}\t{{.Image}}\t{{.CreatedHuman}}\t{{.Status}}' | sed '3~2d' |
|||
echo "" |
@ -1,5 +1,5 @@ |
|||
#!/bin/bash |
|||
|
|||
echo "ZFS Pools:" |
|||
echo " $(zpool status -x)" |
|||
echo "ZFS Pool:" |
|||
zpool status | sed -E '/^\s*$/d' | sed -E 's/(.*)/ \1/' |
|||
echo "" |
|||
|
Loading…
Reference in new issue