diff options
author | Adam Warner <me@adamwarner.co.uk> | 2022-07-30 21:03:46 +0300 |
---|---|---|
committer | Adam Warner <me@adamwarner.co.uk> | 2022-07-30 21:03:46 +0300 |
commit | 0e8c1ec023f5b684c48ef1853e0ab33dffc4afac (patch) | |
tree | fa02fd3ff4c9c9a280e7556b8d71332bd5303801 /automated install | |
parent | 313c0ddf288bbbd9818606204bbb80dce75ddcf6 (diff) |
Flip logic on epel check - if _not_ fedora, then (try to, depending on supported OS) install EPEL.
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
Diffstat (limited to 'automated install')
-rwxr-xr-x | automated install/basic-install.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 4623ee88..ba93cf26 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -377,7 +377,7 @@ package_manager_detect() { check_epel_repo_required(){ # If the host OS is centos (or a derivative), epel is required for lighttpd - if grep -qiE 'centos|scientific|alma|rocky' /etc/redhat-release; then + if ! grep -qiE 'fedora|fedberry' /etc/redhat-release; then # Check current CentOS major release version CURRENT_CENTOS_VERSION=$(grep -oP '(?<= )[0-9]+(?=\.?)' /etc/redhat-release) if rpm -qa | grep -qi 'epel'; then |