diff --git a/advanced/Scripts/update.sh b/advanced/Scripts/update.sh index 2af64738..e682e837 100644 --- a/advanced/Scripts/update.sh +++ b/advanced/Scripts/update.sh @@ -88,14 +88,14 @@ fi echo "::: Checking for updates..." # Checks Pi-hole version > pihole only > current local git repo version : returns string in format vX.X.X -piholeVersion=$(pihole -v -p -c) +piholeVersion=$(/usr/local/bin/pihole -v -p -c) # Checks Pi-hole version > pihole only > remote upstream repo version : returns string in format vX.X.X -piholeVersionLatest=$(pihole -v -p -l) +piholeVersionLatest=$(/usr/local/bin/pihole -v -p -l) # Checks Pi-hole version > admin only > current local git repo version : returns string in format vX.X.X -webVersion=$(pihole -v -a -c) +webVersion=$(/usr/local/bin/pihole -v -a -c) # Checks Pi-hole version > admin only > remote upstream repo version : returns string in format vX.X.X -webVersionLatest=$(pihole -v -a -l) +webVersionLatest=$(/usr/local/bin/pihole -v -a -l) echo ":::" echo "::: Pi-hole version is $piholeVersion (Latest version is $piholeVersionLatest)" @@ -125,7 +125,7 @@ elif [[ "${piholeVersion} == ${piholeVersionLatest}" ]] && [[ "${webVersion}" != echo "::: Pi-hole Web Admin files out of date" getGitFiles "${WEBINTERFACEDIR}" "${WEBINTERFACEGITURL}" echo ":::" - webVersion=$(pihole -v -a -c) + webVersion=$(/usr/local/bin/pihole -v -a -c) echo "::: Web Admin version is now at ${webVersion}" echo "::: If you had made any changes in '/var/www/html/admin', they have been stashed using 'git stash'" echo "" @@ -136,7 +136,7 @@ elif [[ "${piholeVersion}" != "${piholeVersionLatest}" ]] && [[ "${webVersion}" /etc/.pihole/automated\ install/basic-install.sh --reconfigure --unattended || echo "Unable to complete update, contact Pi-hole" && exit 1 echo ":::" - piholeVersion=$(pihole -v -p -c) + piholeVersion=$(/usr/local/bin/pihole -v -p -c) echo "::: Pi-hole version is now at ${piholeVersion}" echo "::: If you had made any changes in '/etc/.pihole', they have been stashed using 'git stash'" echo "" @@ -147,9 +147,9 @@ elif [[ "${piholeVersion}" != "${piholeVersionLatest}" ]] && [[ "${webVersion}" /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) + webVersion=$(/usr/local/bin/pihole -v -a -c) # Checks Pi-hole version > admin only > current local git repo version : returns string in format vX.X.X - piholeVersion=$(pihole -v -p -c) + piholeVersion=$(/usr/local/bin/pihole -v -p -c) echo ":::" echo "::: Pi-hole version is now at ${piholeVersion}" echo "::: If you had made any changes in '/etc/.pihole', they have been stashed using 'git stash'"