summaryrefslogtreecommitdiffstats
path: root/.github/scripts/ci-support-pkgs.sh
blob: 5cedbf3b9e02cac9c6c49d30611ecfb937dc21d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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