Setup acmetool hook into correct place

This commit is contained in:
link2xt
2025-11-06 18:58:05 +00:00
committed by l
parent ded9dd470d
commit 1cff4a94f1

View File

@@ -19,12 +19,18 @@ def deploy_acmetool(email="", domains=[]):
) )
files.put( files.put(
name="Install acmetool hook.",
src=importlib.resources.files(__package__).joinpath("acmetool.hook").open("rb"), src=importlib.resources.files(__package__).joinpath("acmetool.hook").open("rb"),
dest="/usr/lib/acme/hooks/nginx", dest="/etc/acme/hooks/nginx",
user="root", user="root",
group="root", group="root",
mode="744", mode="744",
) )
files.file(
name="Remove acmetool hook from the wrong location where it was previously installed.",
path="/usr/lib/acme/hooks/nginx",
present=False,
)
files.template( files.template(
src=importlib.resources.files(__package__).joinpath("response-file.yaml.j2"), src=importlib.resources.files(__package__).joinpath("response-file.yaml.j2"),