mirror of
https://github.com/chatmail/relay.git
synced 2026-05-21 13:28:05 +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:
|
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",
|
||||||
|
|||||||
Reference in New Issue
Block a user