mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
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>
This commit is contained in:
parent
313c0ddf28
commit
0e8c1ec023
1 changed files with 1 additions and 1 deletions
|
@ -377,7 +377,7 @@ package_manager_detect() {
|
||||||
|
|
||||||
check_epel_repo_required(){
|
check_epel_repo_required(){
|
||||||
# If the host OS is centos (or a derivative), epel is required for lighttpd
|
# 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
|
# Check current CentOS major release version
|
||||||
CURRENT_CENTOS_VERSION=$(grep -oP '(?<= )[0-9]+(?=\.?)' /etc/redhat-release)
|
CURRENT_CENTOS_VERSION=$(grep -oP '(?<= )[0-9]+(?=\.?)' /etc/redhat-release)
|
||||||
if rpm -qa | grep -qi 'epel'; then
|
if rpm -qa | grep -qi 'epel'; then
|
||||||
|
|
Loading…
Reference in a new issue