4 changed files with 20 additions and 16 deletions
@ -1,11 +1,15 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
|
|
||||
echo "Welcome to $(hostname)" |
echo "Welcome to $(hostname -f)" |
||||
echo "$(date)" |
echo "$(date)" |
||||
echo "$(lsb_release -sd) $(uname -rm)" |
echo "$(lsb_release -sd) $(uname -rm)" |
||||
upgrades=$(apt list -qq --upgradable 2> /dev/null | wc -l) |
upgrades=$(apt list -qq --upgradable 2> /dev/null | wc -l) |
||||
if [[ $upgrades == 0 ]]; then |
if [[ $upgrades -eq 0 ]]; then |
||||
printf "All packages are up to date.\n\n" |
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 |
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 |
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 |
#!/bin/bash |
||||
|
|
||||
echo "ZFS Pools:" |
echo "ZFS Pool:" |
||||
echo " $(zpool status -x)" |
zpool status | sed -E '/^\s*$/d' | sed -E 's/(.*)/ \1/' |
||||
echo "" |
echo "" |
||||
|
Loading…
Reference in new issue