mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-24 13:50:17 +00:00
If unattened reinstall fails, notify user and exit script immediately.
This commit is contained in:
parent
1991ee7a7d
commit
fbc800e556
1 changed files with 2 additions and 1 deletions
|
@ -135,7 +135,8 @@ elif [[ "${piholeVersion}" != "${piholeVersionLatest}" ]] && [[ "${webVersion}"
|
|||
elif [[ "${piholeVersion}" != "${piholeVersionLatest}" ]] && [[ "${webVersion}" != "${webVersionLatest}" ]]; then
|
||||
echo "::: Updating Everything"
|
||||
getGitFiles "${PIHOLEFILESDIR}" "${PIHOLEGITURL}"
|
||||
/etc/.pihole/automated\ install/basic-install.sh --unattended
|
||||
|
||||
/etc/.pihole/automated\ install/basic-install.sh --unattended || echo "Unable to complete update, contact Pi-hole" && exit 1
|
||||
|
||||
# Checks Pi-hole version > admin only > current local git repo version : returns string in format vX.X.X
|
||||
webVersion=$(pihole -v -a -c)
|
||||
|
|
Loading…
Reference in a new issue