1
0
mirror of https://github.com/pi-hole/pi-hole synced 2025-01-24 15:00:54 +00:00

Fixes #768 Check the staleness of the package index instead of the package cache.

This commit is contained in:
Dan Schaper 2016-10-08 13:47:35 -07:00
parent 33745be745
commit b157bc5cd7

View File

@ -68,7 +68,7 @@ if [ -x "$(command -v apt-get)" ];then
fi fi
############################################# #############################################
PKG_MANAGER="apt-get" PKG_MANAGER="apt-get"
PKG_CACHE="/var/cache/apt" PKG_CACHE="/var/lib/apt/lists/"
UPDATE_PKG_CACHE="$PKG_MANAGER -qq update" UPDATE_PKG_CACHE="$PKG_MANAGER -qq update"
PKG_UPDATE="$PKG_MANAGER upgrade" PKG_UPDATE="$PKG_MANAGER upgrade"
PKG_INSTALL="$PKG_MANAGER --yes --quiet install" PKG_INSTALL="$PKG_MANAGER --yes --quiet install"