|
|
|
@ -76,6 +76,7 @@ def get_arg(env_str, default, arg_bool=False, arg_int=False):
|
|
|
|
|
else:
|
|
|
|
|
return default
|
|
|
|
|
|
|
|
|
|
env_version = get_arg("BRANCH_NAME", "master")
|
|
|
|
|
is_docker = get_arg("PMM_DOCKER", False, arg_bool=True)
|
|
|
|
|
is_linuxserver = get_arg("PMM_LINUXSERVER", False, arg_bool=True)
|
|
|
|
|
run_arg = " ".join([f'"{s}"' if " " in s else s for s in sys.argv[:]])
|
|
|
|
@ -192,7 +193,7 @@ def start(attrs):
|
|
|
|
|
logger.info_center(" |___/ ")
|
|
|
|
|
system_ver = "Docker" if is_docker else "Linuxserver" if is_linuxserver else f"Python {platform.python_version()}"
|
|
|
|
|
logger.info(f" Version: {version[0]} ({system_ver})")
|
|
|
|
|
latest_version = util.current_version(version)
|
|
|
|
|
latest_version = util.current_version(version, env_version=env_version)
|
|
|
|
|
new_version = latest_version[0] if latest_version and (version[1] != latest_version[1] or (version[2] and version[2] < latest_version[2])) else None
|
|
|
|
|
if new_version:
|
|
|
|
|
logger.info(f" Newest Version: {new_version}")
|
|
|
|
@ -209,6 +210,7 @@ def start(attrs):
|
|
|
|
|
attrs["time_obj"] = start_time
|
|
|
|
|
attrs["read_only"] = read_only_config
|
|
|
|
|
attrs["version"] = version
|
|
|
|
|
attrs["env_version"] = env_version
|
|
|
|
|
attrs["no_missing"] = no_missing
|
|
|
|
|
attrs["no_report"] = no_report
|
|
|
|
|
attrs["collection_only"] = collection_only
|
|
|
|
|