Move echobot into /var/lib/echobot

This commit is contained in:
link2xt
2024-05-02 18:19:34 +00:00
parent e4f8c78efe
commit 0493e27312
4 changed files with 36 additions and 10 deletions

View File

@@ -477,6 +477,7 @@ def deploy_chatmail(config_path: Path) -> None:
groups=["opendkim"],
system=True,
)
server.user(name="Create echobot user", user="echobot", system=True)
server.shell(
name="Fix file owner in /home/vmail",

View File

@@ -7,6 +7,14 @@ Environment="PATH={remote_venv_dir}:$PATH"
Restart=always
RestartSec=30
User=echobot
Group=echobot
# Create /var/lib/echobot
StateDirectory=echobot
WorkingDirectory=/var/lib/echobot
# Apply security restrictions suggested by
# systemd-analyze security echobot.service
CapabilityBoundingSet=