瀏覽代碼

Merge pull request #908 from Shane-XB-Qian/pr_remove_cron_q

fix: mailsync looks no '-q' parameter or made it fail
pull/912/head
Luke Smith 1 年之前
committed by GitHub
父節點
當前提交
17bb517c39
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      bin/mw

+ 1
- 1
bin/mw 查看文件

@@ -217,7 +217,7 @@ togglecron() { cron="$(mktemp)"
sed -ibu /mailsync/d "$cron"; rm -f "$cron"bu
else
echo "Adding automatic mailsync every ${cronmin:-10} minutes..."
echo "*/${cronmin:-10} * * * * $prefix/bin/mailsync -q" >> "$cron"
echo "*/${cronmin:-10} * * * * $prefix/bin/mailsync" >> "$cron"
fi &&
crontab "$cron"; rm -f "$cron" ;}



Loading…
取消
儲存