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