install.sh 585 B

12345678910111213141516171819
  1. # check if ubuntu/debain
  2. if [ -f /etc/debian_version ]; then
  3. sudo apt-get install pkg-config gcc libseccomp-dev
  4. # check if fedora
  5. elif [ -f /etc/fedora-release ]; then
  6. sudo dnf install pkgconfig gcc libseccomp-devel
  7. # check if arch
  8. elif [ -f /etc/arch-release ]; then
  9. sudo pacman -S pkg-config gcc libseccomp
  10. # check if alpine
  11. elif [ -f /etc/alpine-release ]; then
  12. sudo apk add pkgconfig gcc libseccomp-dev
  13. # check if centos
  14. elif [ -f /etc/centos-release ]; then
  15. sudo yum install pkgconfig gcc libseccomp-devel
  16. else
  17. echo "Unsupported distribution"
  18. exit 1
  19. fi