move doveauth scripts to its own python project

This commit is contained in:
missytake
2023-10-13 17:57:43 +02:00
committed by holger krekel
parent 556d9d37a4
commit 344e799a51
5 changed files with 3 additions and 3 deletions

View File

@@ -12,8 +12,8 @@ from .acmetool import deploy_acmetool
def _install_chatctl() -> None:
"""Setup chatctl."""
files.put(
src=importlib.resources.files(__package__)
.joinpath("dovecot/doveauth.py")
src=importlib.resources.files("doveauth")
.joinpath("doveauth.py")
.open("rb"),
dest="/home/vmail/chatctl",
user="vmail",
@@ -103,7 +103,7 @@ def _configure_dovecot(mail_server: str) -> bool:
# luarocks install http lpeg_patterns fifo
auth_script = files.put(
src=importlib.resources.files(__package__).joinpath("dovecot/doveauth.lua"),
src=importlib.resources.files("doveauth").joinpath("doveauth.lua"),
dest="/etc/dovecot/doveauth.lua",
user="root",
group="root",