From ae5f79d80a7af44edaca298128f013616320abf8 Mon Sep 17 00:00:00 2001 From: neil Date: Mon, 28 Dec 2015 11:52:36 +0800 Subject: [PATCH] minor, fix uninstall messages. --- le.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/le.sh b/le.sh index 66912fcc..23afae3d 100755 --- a/le.sh +++ b/le.sh @@ -567,8 +567,16 @@ install() { uninstall() { _initpath _info "Removing cron job" - crontab -l | sed "/le.sh renewAll/d" | crontab - - + + if ! crontab -l | grep 'le.sh renewAll' ; then + crontab -l | sed "/le.sh renewAll/d" | crontab - + if command -v crond > /dev/null ; then + service crond reload 2>/dev/null + else + service cron reload 2>/dev/null + fi + fi + _info "Removing /bin/le.sh" rm -f /bin/le rm -f /bin/le.sh