mirror of
https://github.com/chatmail/relay.git
synced 2026-05-10 16:04:37 +00:00
move doveauth scripts to its own python project
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user