Commit 975ddbee authored by Robin Fischer's avatar Robin Fischer

Create directoris for certbot

parent 3293f7fb
......@@ -25,6 +25,12 @@ template_path = os.path.join(current_dir, args.templateFile)
target_site_dir = os.path.join(current_dir, args.targetSiteDirectory)
certbot_config_dir = os.path.join(working_dir, "config")
certbot_logs_dir = os.path.join(working_dir, "logs")
certbot_workspace_dir = os.path.join(working_dir, "workspace")
os.mkdir(certbot_config_dir)
os.mkdir(certbot_logs_dir)
os.mkdir(certbot_workspace_dir)
certbot_parameters = [
"certbot", "certonly",
......@@ -32,8 +38,8 @@ certbot_parameters = [
"--manual",
"--manual-auth_hook", "\"" + auth_script_path + " " + template_path + " " + target_site_dir + "\"",
"--config-dir", certbot_config_dir,
"--logs-dir", os.path.join(working_dir, "logs"),
"--work-dir", os.path.join(working_dir, "workspace"),
"--logs-dir", certbot_logs_dir,
"--work-dir", certbot_workspace_dir,
"--manual-public-ip-logging-ok",
"--agree-tos"
]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment