diff options
| author | alex <alex@pdp7.net> | 2024-05-25 16:58:51 +0000 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2024-05-25 16:59:02 +0000 |
| commit | 161da9bb81b644dbbdb1d3b9f0050414e0fa3df0 (patch) | |
| tree | c567c2b4698efef7f08bbb60ed2fc9db3c35c8d1 /scripts | |
| parent | 5504d9f005af0f2340a04fe0c5876100f5d4d733 (diff) | |
Add notmuch
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/p7s/mail/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/p7s/mail/__init__.py b/scripts/p7s/mail/__init__.py index 0c37dd8b..27183325 100644 --- a/scripts/p7s/mail/__init__.py +++ b/scripts/p7s/mail/__init__.py @@ -25,7 +25,8 @@ def generate_config(): Description=Mail synchronization [Service] - ExecStart=/usr/bin/mbsync -qa + Type=oneshot + ExecStart=/usr/bin/mbsync -qa ; /usr/bin/notmuch new """).lstrip()) (user_units / "mbsync.timer").write_text(textwrap.dedent(""" @@ -42,6 +43,7 @@ def generate_config(): Unit=mbsync.service """).lstrip()) + subprocess.run(["systemctl", "--user", "daemon-reload"], check=True) subprocess.run(["systemctl", "--user", "enable", "--now", "mbsync.timer"], check=True) subprocess.run(["sudo", "loginctl", "enable-linger", "alex"], check=True) |
