Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
fix install script on Amazon Linux (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
bonifaido authored Jan 5, 2024
1 parent ef01504 commit 01bf575
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion deploy/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ install_package() {
sudo apt install -y "$1"
elif [ -x "$(command -v dnf)" ]; then
# CentOS/RHEL
sudo dnf install --enablerepo epel -y "$1"
enable_epel="--enablerepo=epel"
# Disable EPEL on Amazon Linux
grep Amazon /etc/os-release &>/dev/null && enable_epel=""
sudo dnf install ${enable_epel} -y "$1"
else
error "Unsupported package manager. Please install packages manually."
fi
Expand Down

0 comments on commit 01bf575

Please sign in to comment.