From be2d494fcf9fa7e82da23dda99c10566b8a3fb3a Mon Sep 17 00:00:00 2001 From: Mcat12 Date: Wed, 12 Dec 2018 14:55:09 -0500 Subject: [PATCH] Don't show web version in pihole -v output if not installed Signed-off-by: Mcat12 --- advanced/Scripts/version.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/advanced/Scripts/version.sh b/advanced/Scripts/version.sh index 7dfa1a90..6d0e8c48 100755 --- a/advanced/Scripts/version.sh +++ b/advanced/Scripts/version.sh @@ -136,8 +136,16 @@ errorOutput() { } defaultOutput() { + # Source the setupvars config file + # shellcheck disable=SC1091 + . /etc/pihole/setupVars.conf + versionOutput "pi-hole" "$@" - versionOutput "AdminLTE" "$@" + + if [[ "${INSTALL_WEB_INTERFACE}" == true ]]; then + versionOutput "AdminLTE" "$@" + fi + versionOutput "FTL" "$@" }