]> code.delx.au - monosys/blob - healthcheck/packages
healthcheck more fixes
[monosys] / healthcheck / packages
1 #!/bin/bash
2
3 set -eu
4
5 if [ -z "${CHRONIC_WRAPPED:-}" ]; then
6 export CHRONIC_WRAPPED=1
7 exec chronic -e "$0"
8 fi
9
10 . /etc/os-release
11
12 function is_debian {
13 [ "$ID" = debian ] || [ "${ID_LIKE:-}" = debian ]
14 }
15
16 function is_arch {
17 [ "$ID" = arch ]
18 }
19
20 if is_debian; then
21 echo "# aptorphan"
22 aptorphan 1>&2
23
24 echo "# aptitude search ~U"
25 aptitude search ~U 1>&2 || true
26 fi
27
28 if is_arch; then
29 echo "# pacorphan"
30 pacorphan 1>&2
31 fi