Fix PosixPath in jobs

This commit is contained in:
Théophile Diot 2023-06-06 11:18:55 -04:00
parent 85a53278e1
commit c18f743d44
No known key found for this signature in database
GPG Key ID: E752C80DB72BB014
3 changed files with 10 additions and 10 deletions

View File

@ -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,

View File

@ -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",

View File

@ -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",