Run pihole updatechecker if versions file is not found

Signed-off-by: Christian König <ckoenig@posteo.de>
pull/4959/head
Christian König 2 years ago
parent c84be5de61
commit 52283478c8
No known key found for this signature in database

@ -19,8 +19,10 @@ if [ -f ${cachedVersions} ]; then
# shellcheck disable=SC1090
. "$cachedVersions"
else
echo "Could not find /etc/pihole/versions. Exiting."
exit 1
echo "Could not find /etc/pihole/versions. Running update now."
pihole updatechecker
# shellcheck disable=SC1090
. "$cachedVersions"
fi
getLocalVersion() {

Loading…
Cancel
Save