mirror of
https://github.com/chatmail/relay.git
synced 2026-05-20 04:48:06 +00:00
Setup acmetool hook into correct place
This commit is contained in:
@@ -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"),
|
||||||
|
|||||||
Reference in New Issue
Block a user