mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-28 15:52:21 +00:00
Also check during installlation of the dependency package
Signed-off-by: Christian König <github@yubiuser.dev>
This commit is contained in:
parent
fdda40994b
commit
cc01c110f1
1 changed files with 9 additions and 4 deletions
|
@ -1517,11 +1517,9 @@ install_dependent_packages() {
|
||||||
printf " %b Error: Unable to find Pi-hole dependency meta package.\\n" "${COL_LIGHT_RED}"
|
printf " %b Error: Unable to find Pi-hole dependency meta package.\\n" "${COL_LIGHT_RED}"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
# Install Fedora/CentOS packages
|
# Install Fedora/CentOS packages
|
||||||
if is_command rpm; then
|
elif is_command rpm; then
|
||||||
if [ -f /tmp/pihole-meta.rpm ]; then
|
if [ -f /tmp/pihole-meta.rpm ]; then
|
||||||
eval "${PKG_INSTALL}" "/tmp/pihole-meta.rpm"
|
eval "${PKG_INSTALL}" "/tmp/pihole-meta.rpm"
|
||||||
rm /tmp/pihole-meta.rpm
|
rm /tmp/pihole-meta.rpm
|
||||||
else
|
else
|
||||||
|
@ -1529,7 +1527,14 @@ install_dependent_packages() {
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# If neither apt-get or yum/dnf package managers were found
|
||||||
|
else
|
||||||
|
# we cannot install the dependency package
|
||||||
|
printf " %b No supported package manager found\\n" "${CROSS}"
|
||||||
|
# so exit the installer
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "\\n"
|
printf "\\n"
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue