From ac89cc70c6a8a0eda7796db2077ffe263671ea3c Mon Sep 17 00:00:00 2001 From: Subhaditya Nath Date: Thu, 2 Dec 2021 20:30:54 +0530 Subject: [PATCH] Always source /etc/pihole/setupVars.conf https://github.com/pi-hole/pi-hole/pull/4370#issuecomment-978149567 --- advanced/Scripts/version.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/advanced/Scripts/version.sh b/advanced/Scripts/version.sh index 421c9961..0b7b29dd 100755 --- a/advanced/Scripts/version.sh +++ b/advanced/Scripts/version.sh @@ -13,6 +13,10 @@ DEFAULT="-1" COREGITDIR="/etc/.pihole/" WEBGITDIR="/var/www/html/admin/" +# Source the setupvars config file +# shellcheck disable=SC1091 +source /etc/pihole/setupVars.conf + getLocalVersion() { # FTL requires a different method if [[ "$1" == "FTL" ]]; then @@ -184,10 +188,6 @@ errorOutput() { } defaultOutput() { - # Source the setupvars config file - # shellcheck disable=SC1091 - source /etc/pihole/setupVars.conf - versionOutput "pi-hole" "$@" if [[ "${INSTALL_WEB_INTERFACE}" == true ]]; then