show the Mail-in-a-Box version in the system status checks even when the new-version check is disabled
fixes #922
This commit is contained in:
parent
e5e0c64395
commit
60f9c9e3b7
|
@ -794,14 +794,14 @@ def get_latest_miab_version():
|
||||||
def check_miab_version(env, output):
|
def check_miab_version(env, output):
|
||||||
config = load_settings(env)
|
config = load_settings(env)
|
||||||
|
|
||||||
if config.get("privacy", True):
|
|
||||||
output.print_warning("Mail-in-a-Box version check disabled by privacy setting.")
|
|
||||||
else:
|
|
||||||
try:
|
try:
|
||||||
this_ver = what_version_is_this(env)
|
this_ver = what_version_is_this(env)
|
||||||
except:
|
except:
|
||||||
this_ver = "Unknown"
|
this_ver = "Unknown"
|
||||||
|
|
||||||
|
if config.get("privacy", True):
|
||||||
|
output.print_warning("You are running version Mail-in-a-Box %s. Mail-in-a-Box version check disabled by privacy setting." % this_ver)
|
||||||
|
else:
|
||||||
latest_ver = get_latest_miab_version()
|
latest_ver = get_latest_miab_version()
|
||||||
|
|
||||||
if this_ver == latest_ver:
|
if this_ver == latest_ver:
|
||||||
|
|
Loading…
Reference in New Issue