aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mbsync/install.sh
blob: de06c1adeab3f11ecb2e168dc259a22583b2160e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

if ! command -v "mbsync" >/dev/null; then
	printf "%s: mbsync not found, skipping...\n" "$0"
	exit 0
fi

printf "%s: Installing services\n" "$0"

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