diff --git a/deploy-chatmail/src/deploy_chatmail/__init__.py b/deploy-chatmail/src/deploy_chatmail/__init__.py index 48dfb564..7b80fb8b 100644 --- a/deploy-chatmail/src/deploy_chatmail/__init__.py +++ b/deploy-chatmail/src/deploy_chatmail/__init__.py @@ -151,8 +151,8 @@ def _install_mta_sts_daemon() -> bool: server.shell( name="install postfix-mta-sts-resolver with pip", commands=[ - "python3 -m venv /var/lib/postfix-mta-sts-resolver", - "/var/lib/postfix-mta-sts-resolver/bin/pip install postfix-mta-sts-resolver", + "python3 -m venv /usr/local/lib/postfix-mta-sts-resolver", + "/usr/local/lib/postfix-mta-sts-resolver/bin/pip install postfix-mta-sts-resolver", ], ) diff --git a/deploy-chatmail/src/deploy_chatmail/postfix/mta-sts-daemon.service b/deploy-chatmail/src/deploy_chatmail/postfix/mta-sts-daemon.service index fc310d7e..22d7d2f4 100644 --- a/deploy-chatmail/src/deploy_chatmail/postfix/mta-sts-daemon.service +++ b/deploy-chatmail/src/deploy_chatmail/postfix/mta-sts-daemon.service @@ -2,7 +2,7 @@ Description=Postfix MTA-STS resolver daemon [Service] -ExecStart=/var/lib/postfix-mta-sts-resolver/bin/mta-sts-daemon +ExecStart=/usr/local/lib/postfix-mta-sts-resolver/bin/mta-sts-daemon Restart=always RestartSec=30