summaryrefslogtreecommitdiffstats
path: root/.github/scripts/ci-support-pkgs.sh
blob: 9ba11b68ee87f74b8a07c290a1333b4c5b764d49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

# This script installs supporting packages needed for CI, which provide following:
# cron, pidof

set -e

. /etc/os-release

case "${ID}" in
    amzn|almalinux|centos|fedora)
        dnf install -y procps-ng cronie cronie-anacron || yum install -y procps-ng cronie cronie-anacron
        ;;
    arch)
        pacman -S --noconfirm cronie
        ;;
esac