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

fix install script on Amazon Linux #85

Merged
merged 1 commit into from
Jan 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion deploy/install.sh
Original file line number Diff line number Diff line change
@@ -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