summaryrefslogtreecommitdiffstatshomepage
path: root/mbsync/install.sh
blob: dafb48ed01a68535be47acd0dce80670421c4082 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh

if command -v mbsync >/dev/null; then
	systemctl --user enable --now mbsync.service
else
	cat <<-EOF
		command not found: mbsync

		install 'isync' package:
		  paru -S isync
	EOF
fi

if command -v goimapnotify >/dev/null; then
	systemctl --user enable --now goimapnotify@gmail.service
	systemctl --user enable --now goimapnotify@porkbun.service
else
	cat <<-EOF
		command not found: goimapnotify

		install 'goimapnotify' package:
		  paru -S goimapnotify
	EOF
fi

systemctl --user enable --now maildir-notify@gmail.service
systemctl --user enable --now maildir-notify@porkbun.service