From 776bd878889c704d381ed894dff99360d5c5d241 Mon Sep 17 00:00:00 2001 From: missytake Date: Sat, 25 Nov 2023 00:29:37 +0100 Subject: [PATCH] moved mta-sts-resolver to /usr/local/lib --- deploy-chatmail/src/deploy_chatmail/__init__.py | 4 ++-- .../src/deploy_chatmail/postfix/mta-sts-daemon.service | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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