Fix PosixPath in jobs
This commit is contained in:
parent
85a53278e1
commit
c18f743d44
|
@ -37,17 +37,17 @@ def certbot_new(
|
|||
join(sep, "usr", "share", "bunkerweb", "deps", "python", "bin", "certbot"),
|
||||
"certonly",
|
||||
"--config-dir",
|
||||
letsencrypt_path.joinpath("etc"),
|
||||
str(letsencrypt_path.joinpath("etc")),
|
||||
"--work-dir",
|
||||
letsencrypt_path.joinpath("lib"),
|
||||
str(letsencrypt_path.joinpath("lib")),
|
||||
"--logs-dir",
|
||||
letsencrypt_path.joinpath("log"),
|
||||
str(letsencrypt_path.joinpath("log")),
|
||||
"--manual",
|
||||
"--preferred-challenges=http",
|
||||
"--manual-auth-hook",
|
||||
letsencrypt_job_path.joinpath("certbot-auth.py"),
|
||||
str(letsencrypt_job_path.joinpath("certbot-auth.py")),
|
||||
"--manual-cleanup-hook",
|
||||
letsencrypt_job_path.joinpath("certbot-cleanup.py"),
|
||||
str(letsencrypt_job_path.joinpath("certbot-cleanup.py")),
|
||||
"-n",
|
||||
"-d",
|
||||
domains,
|
||||
|
|
|
@ -75,9 +75,9 @@ try:
|
|||
"-newkey",
|
||||
"rsa:4096",
|
||||
"-keyout",
|
||||
cert_path.joinpath("cert.key"),
|
||||
str(cert_path.joinpath("cert.key")),
|
||||
"-out",
|
||||
cert_path.joinpath("cert.pem"),
|
||||
str(cert_path.joinpath("cert.pem")),
|
||||
"-days",
|
||||
"3650",
|
||||
"-subj",
|
||||
|
|
|
@ -43,7 +43,7 @@ def generate_cert(
|
|||
"86400",
|
||||
"-noout",
|
||||
"-in",
|
||||
self_signed_path.joinpath(f"{first_server}.pem"),
|
||||
str(self_signed_path.joinpath(f"{first_server}.pem")),
|
||||
],
|
||||
stdin=DEVNULL,
|
||||
stderr=STDOUT,
|
||||
|
@ -65,9 +65,9 @@ def generate_cert(
|
|||
"-newkey",
|
||||
"rsa:4096",
|
||||
"-keyout",
|
||||
self_signed_path.joinpath(f"{first_server}.key"),
|
||||
str(self_signed_path.joinpath(f"{first_server}.key")),
|
||||
"-out",
|
||||
self_signed_path.joinpath(f"{first_server}.pem"),
|
||||
str(self_signed_path.joinpath(f"{first_server}.pem")),
|
||||
"-days",
|
||||
days,
|
||||
"-subj",
|
||||
|
|
Loading…
Reference in New Issue