cron for debian

This commit is contained in:
Luke Smith 2019-04-24 08:03:37 -04:00
parent 4a931faf3b
commit c9efc9f85c
No known key found for this signature in database
GPG Key ID: 4C50B54A911F6252

2
bin/mw
View File

@ -227,7 +227,7 @@ delete() { sed -i "/IMAPStore $title-remote$/,/# End profile/d" "$mbsyncrc"
sed -i "/account $title/,/^\(\s*$\|account\)/d" "$HOME/.config/msmtp/config" sed -i "/account $title/,/^\(\s*$\|account\)/d" "$HOME/.config/msmtp/config"
} }
choosecron() { ! pgrep crond >/dev/null && echo "No cron manager running. Install/enable one and then select this option again." && return 1 choosecron() { ! pgrep -x cron\|crond >/dev/null && echo "No cron manager running. Install/enable one and then select this option again." && return 1
if crontab -l | grep mailsync >/dev/null; then if crontab -l | grep mailsync >/dev/null; then
echo "Active mail sync cronjob detected. Do you want to remove it?" echo "Active mail sync cronjob detected. Do you want to remove it?"
printf "\033[36m\t" printf "\033[36m\t"