mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-24 13:50:17 +00:00
Google Style Guide. readonly
and cap constants.
This commit is contained in:
parent
ffbfadbccf
commit
1991ee7a7d
1 changed files with 7 additions and 7 deletions
|
@ -14,10 +14,10 @@
|
||||||
|
|
||||||
# Variables
|
# Variables
|
||||||
|
|
||||||
webInterfaceGitUrl="https://github.com/pi-hole/AdminLTE.git"
|
readonly WEBINTERFACEGITURL="https://github.com/pi-hole/AdminLTE.git"
|
||||||
webInterfaceDir="/var/www/html/admin"
|
readonly WEBINTERFACEDIR="/var/www/html/admin"
|
||||||
piholeGitUrl="https://github.com/pi-hole/pi-hole.git"
|
readonly PIHOLEGITURL="https://github.com/pi-hole/pi-hole.git"
|
||||||
piholeFilesDir="/etc/.pihole"
|
readonly PIHOLEFILESDIR="/etc/.pihole"
|
||||||
|
|
||||||
spinner() {
|
spinner() {
|
||||||
local pid=${1}
|
local pid=${1}
|
||||||
|
@ -117,7 +117,7 @@ if [[ "${piholeVersion}" == "${piholeVersionLatest}" ]] && [[ "${webVersion}" ==
|
||||||
|
|
||||||
elif [[ "${piholeVersion} == ${piholeVersionLatest}" ]] && [[ "${webVersion}" != "${webVersionLatest}" ]]; then
|
elif [[ "${piholeVersion} == ${piholeVersionLatest}" ]] && [[ "${webVersion}" != "${webVersionLatest}" ]]; then
|
||||||
echo "::: Pi-hole Web Admin files out of date"
|
echo "::: Pi-hole Web Admin files out of date"
|
||||||
getGitFiles "${webInterfaceDir}" "${webInterfaceGitUrl}"
|
getGitFiles "${WEBINTERFACEDIR}" "${WEBINTERFACEGITURL}"
|
||||||
echo ":::"
|
echo ":::"
|
||||||
webVersion=$(pihole -v -a -c)
|
webVersion=$(pihole -v -a -c)
|
||||||
echo "::: Web Admin version is now at ${webVersion}"
|
echo "::: Web Admin version is now at ${webVersion}"
|
||||||
|
@ -125,7 +125,7 @@ elif [[ "${piholeVersion} == ${piholeVersionLatest}" ]] && [[ "${webVersion}" !=
|
||||||
echo ""
|
echo ""
|
||||||
elif [[ "${piholeVersion}" != "${piholeVersionLatest}" ]] && [[ "${webVersion}" == "${webVersionLatest}" ]]; then
|
elif [[ "${piholeVersion}" != "${piholeVersionLatest}" ]] && [[ "${webVersion}" == "${webVersionLatest}" ]]; then
|
||||||
echo "::: Pi-hole core files out of date"
|
echo "::: Pi-hole core files out of date"
|
||||||
getGitFiles "${piholeFilesDir}" "${piholeGitUrl}"
|
getGitFiles "${PIHOLEFILESDIR}" "${PIHOLEGITURL}"
|
||||||
/etc/.pihole/automated\ install/basic-install.sh --reconfigure --unattended
|
/etc/.pihole/automated\ install/basic-install.sh --reconfigure --unattended
|
||||||
echo ":::"
|
echo ":::"
|
||||||
piholeVersion=$(pihole -v -p -c)
|
piholeVersion=$(pihole -v -p -c)
|
||||||
|
@ -134,7 +134,7 @@ elif [[ "${piholeVersion}" != "${piholeVersionLatest}" ]] && [[ "${webVersion}"
|
||||||
echo ""
|
echo ""
|
||||||
elif [[ "${piholeVersion}" != "${piholeVersionLatest}" ]] && [[ "${webVersion}" != "${webVersionLatest}" ]]; then
|
elif [[ "${piholeVersion}" != "${piholeVersionLatest}" ]] && [[ "${webVersion}" != "${webVersionLatest}" ]]; then
|
||||||
echo "::: Updating Everything"
|
echo "::: Updating Everything"
|
||||||
getGitFiles "${piholeFilesDir}" "${piholeGitUrl}"
|
getGitFiles "${PIHOLEFILESDIR}" "${PIHOLEGITURL}"
|
||||||
/etc/.pihole/automated\ install/basic-install.sh --unattended
|
/etc/.pihole/automated\ install/basic-install.sh --unattended
|
||||||
|
|
||||||
# Checks Pi-hole version > admin only > current local git repo version : returns string in format vX.X.X
|
# Checks Pi-hole version > admin only > current local git repo version : returns string in format vX.X.X
|
||||||
|
|
Loading…
Reference in a new issue