ci-support-pkgs.sh 491 B

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