From 13f1a921082584a28541f7dc77da2414e3b0cdf3 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 24 Nov 2022 17:53:26 +0800 Subject: Fix aio bug. --- tool/modules/nginx.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tool/modules/nginx.py') diff --git a/tool/modules/nginx.py b/tool/modules/nginx.py index 3ec9fb8..7aee923 100755 --- a/tool/modules/nginx.py +++ b/tool/modules/nginx.py @@ -95,7 +95,7 @@ def certbot_command_gen(domain: str, action, /, test=False, no_docker=False, *, certbot_action = "renew" else: raise ValueError('Invalid action') - + if no_docker: command = "certbot " else: @@ -124,7 +124,10 @@ def certbot_command_gen(domain: str, action, /, test=False, no_docker=False, *, return command + def nginx_config_dir_check(dir_path: str, domain: str) -> list: + if not os.path.exists(dir_path): + return [] good_files = [*non_template_files, "ssl.conf", * [f"{full_domain}.conf" for full_domain in list_domains(domain)]] bad_files = [] -- cgit v1.2.3