aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mbsync/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mbsync/install.sh')
-rwxr-xr-xmbsync/install.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/mbsync/install.sh b/mbsync/install.sh
new file mode 100755
index 0000000..dafb48e
--- /dev/null
+++ b/mbsync/install.sh
@@ -0,0 +1,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