Merge pull request #2547 from pi-hole/fix/version-command-no-web

Don't show web version in pihole -v output if not installed
pull/2574/head
Mark Drobnak 5 years ago committed by GitHub
commit 262d5eea22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -136,8 +136,16 @@ errorOutput() {
}
defaultOutput() {
# Source the setupvars config file
# shellcheck disable=SC1091
source /etc/pihole/setupVars.conf
versionOutput "pi-hole" "$@"
versionOutput "AdminLTE" "$@"
if [[ "${INSTALL_WEB_INTERFACE}" == true ]]; then
versionOutput "AdminLTE" "$@"
fi
versionOutput "FTL" "$@"
}

Loading…
Cancel
Save