check mbsync, not mailsync
This commit is contained in:
parent
7c1da4d168
commit
f3a7f2b6fd
@ -4,7 +4,7 @@
|
|||||||
# Run only if user logged in (prevent cron errors)
|
# Run only if user logged in (prevent cron errors)
|
||||||
pgrep -u "$USER" >/dev/null || exit
|
pgrep -u "$USER" >/dev/null || exit
|
||||||
# Run only if not already running in other instance
|
# Run only if not already running in other instance
|
||||||
pgrep -x mailsync >/dev/null && exit
|
pgrep -x mbsync >/dev/null && exit
|
||||||
|
|
||||||
# Checks for internet connection and set notification script.
|
# Checks for internet connection and set notification script.
|
||||||
ping -q -c 1 1.1.1.1 > /dev/null || exit
|
ping -q -c 1 1.1.1.1 > /dev/null || exit
|
||||||
|
Loading…
Reference in New Issue
Block a user