Perform a check of required packages befor updating pihole (#4326)

Signed-off-by: Christian König <ckoenig@posteo.de>
pull/4327/head
yubiuser 3 years ago committed by GitHub
parent b710e107d6
commit 6d670991c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -95,6 +95,10 @@ main() {
# shellcheck disable=1090,2154
source "${setupVars}"
# Install packages used by this installation script (necessary if users have removed e.g. git from their systems)
package_manager_detect
install_dependent_packages "${INSTALLER_DEPS[@]}"
# This is unlikely
if ! is_repo "${PI_HOLE_FILES_DIR}" ; then
echo -e "\\n ${COL_LIGHT_RED}Error: Core Pi-hole repo is missing from system!"

Loading…
Cancel
Save