mirror of
https://github.com/pi-hole/pi-hole
synced 2024-11-19 22:58:16 +00:00
Merge pull request #1148 from pi-hole/fix/installer_array
Fedora dependency installer fix
This commit is contained in:
commit
8a3c78ca0a
@ -86,7 +86,7 @@ elif command -v rpm &> /dev/null; then
|
|||||||
|
|
||||||
# Fedora and family update cache on every PKG_INSTALL call, no need for a separate update.
|
# Fedora and family update cache on every PKG_INSTALL call, no need for a separate update.
|
||||||
UPDATE_PKG_CACHE=":"
|
UPDATE_PKG_CACHE=":"
|
||||||
PKG_INSTALL="${PKG_MANAGER} install -y"
|
PKG_INSTALL=(${PKG_MANAGER} install -y)
|
||||||
PKG_COUNT="${PKG_MANAGER} check-update | egrep '(.i686|.x86|.noarch|.arm|.src)' | wc -l"
|
PKG_COUNT="${PKG_MANAGER} check-update | egrep '(.i686|.x86|.noarch|.arm|.src)' | wc -l"
|
||||||
INSTALLER_DEPS=(git iproute net-tools newt procps-ng)
|
INSTALLER_DEPS=(git iproute net-tools newt procps-ng)
|
||||||
PIHOLE_DEPS=(bc bind-utils cronie curl dnsmasq findutils lighttpd lighttpd-fastcgi nmap-ncat php php-common php-cli sudo unzip wget)
|
PIHOLE_DEPS=(bc bind-utils cronie curl dnsmasq findutils lighttpd lighttpd-fastcgi nmap-ncat php php-common php-cli sudo unzip wget)
|
||||||
@ -756,7 +756,7 @@ install_dependent_packages() {
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if [[ ${#installArray[@]} -gt 0 ]]; then
|
if [[ ${#installArray[@]} -gt 0 ]]; then
|
||||||
${PKG_INSTALL} "${installArray[@]}" &> /dev/null
|
"${PKG_INSTALL[@]}" "${installArray[@]}" &> /dev/null
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user