]> code.delx.au - monosys/blob - healthcheck/packages
healthcheck: simplify now that `systemd --user` is running everywhere
[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 fi
24
25 if is_arch; then
26 echo "# pacorphan"
27 pacorphan 1>&2
28 fi