diff --git a/management/buy_certificate.py b/management/buy_certificate.py index 8bac8849..9934a032 100755 --- a/management/buy_certificate.py +++ b/management/buy_certificate.py @@ -14,7 +14,7 @@ import rtyaml from utils import load_environment, shell from web_update import get_web_domains, get_domain_ssl_files, get_web_root -from whats_next import check_certificate +from status_checks import check_certificate def buy_ssl_certificate(api_key, domain, command, env): if domain != env['PRIMARY_HOSTNAME'] \ diff --git a/management/daemon.py b/management/daemon.py index 32fbd3c9..b4f52f2f 100755 --- a/management/daemon.py +++ b/management/daemon.py @@ -191,7 +191,7 @@ def web_update(): @app.route('/system/status', methods=["POST"]) @authorized_personnel_only def system_status(): - from whats_next import run_checks + from status_checks import run_checks class WebOutput: def __init__(self): self.items = [] diff --git a/management/whats_next.py b/management/status_checks.py similarity index 100% rename from management/whats_next.py rename to management/status_checks.py diff --git a/management/web_update.py b/management/web_update.py index 4833adb5..2afdaea1 100644 --- a/management/web_update.py +++ b/management/web_update.py @@ -140,7 +140,7 @@ def get_domain_ssl_files(domain, env): # a Subject Alternative Name matching this domain. Don't do this if # the user has uploaded a different private key for this domain. if not ssl_key_is_alt: - from whats_next import check_certificate + from status_checks import check_certificate if check_certificate(domain, ssl_certificate_primary, None) == "OK": ssl_certificate = ssl_certificate_primary diff --git a/setup/start.sh b/setup/start.sh index c210e222..bc4635a9 100755 --- a/setup/start.sh +++ b/setup/start.sh @@ -329,7 +329,7 @@ echo Your Mail-in-a-Box is running. echo echo Please log in to the control panel for further instructions at: echo -if management/whats_next.py --check-primary-hostname; then +if management/status_checks.py --check-primary-hostname; then # Show the nice URL if it appears to be resolving and has a valid certificate. echo https://$PRIMARY_HOSTNAME/admin echo