mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-25 07:33:43 +00:00
Run pihole updatechecker if versions file is not found
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
parent
c84be5de61
commit
52283478c8
1 changed files with 4 additions and 2 deletions
|
@ -19,8 +19,10 @@ if [ -f ${cachedVersions} ]; then
|
||||||
# shellcheck disable=SC1090
|
# shellcheck disable=SC1090
|
||||||
. "$cachedVersions"
|
. "$cachedVersions"
|
||||||
else
|
else
|
||||||
echo "Could not find /etc/pihole/versions. Exiting."
|
echo "Could not find /etc/pihole/versions. Running update now."
|
||||||
exit 1
|
pihole updatechecker
|
||||||
|
# shellcheck disable=SC1090
|
||||||
|
. "$cachedVersions"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
getLocalVersion() {
|
getLocalVersion() {
|
||||||
|
|
Loading…
Reference in a new issue