Skip to content

Commit 1cff4a9

Browse files
committed
Setup acmetool hook into correct place
1 parent ded9dd4 commit 1cff4a9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

cmdeploy/src/cmdeploy/acmetool/__init__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,18 @@ def deploy_acmetool(email="", domains=[]):
1919
)
2020

2121
files.put(
22+
name="Install acmetool hook.",
2223
src=importlib.resources.files(__package__).joinpath("acmetool.hook").open("rb"),
23-
dest="/usr/lib/acme/hooks/nginx",
24+
dest="/etc/acme/hooks/nginx",
2425
user="root",
2526
group="root",
2627
mode="744",
2728
)
29+
files.file(
30+
name="Remove acmetool hook from the wrong location where it was previously installed.",
31+
path="/usr/lib/acme/hooks/nginx",
32+
present=False,
33+
)
2834

2935
files.template(
3036
src=importlib.resources.files(__package__).joinpath("response-file.yaml.j2"),

0 commit comments

Comments
 (0)