master
sh 21 lines 491 Bytes
Raw
1 #!/bin/sh
2
3 # This script installs supporting packages needed for CI, which provide following:
4 # curl, cron, pidof
5
6 set -e
7
8 . /etc/os-release
9
10 case "${ID}" in
11 amzn|almalinux|centos|fedora)
12 dnf install -y procps-ng cronie cronie-anacron curl || \
13 yum install -y procps-ng cronie cronie-anacron curl
14 ;;
15 arch)
16 pacman -S --noconfirm cronie curl
17 ;;
18 debian|ubuntu)
19 apt-get update && apt-get install -y cronie anacron curl
20 ;;
21 esac