From 6d0a26f4f2055cae82cf21d1133bcb6adec3110a Mon Sep 17 00:00:00 2001 From: neil Date: Thu, 7 Jan 2016 13:08:24 +0800 Subject: [PATCH] fix uninstall --- le.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/le.sh b/le.sh index 7ec0c972..a3787d78 100755 --- a/le.sh +++ b/le.sh @@ -639,7 +639,7 @@ install() { SUDO=sudo fi fi - if ! crontab -l | grep 'le.sh renewAll' ; then + if ! crontab -l | grep 'le renewAll' ; then crontab -l | { cat; echo "0 0 * * * $SUDO le renewAll > /dev/null"; } | crontab - if command -v crond > /dev/null ; then service crond reload >/dev/null @@ -656,12 +656,12 @@ uninstall() { _initpath _info "Removing cron job" - if crontab -l | grep 'le.sh renewAll' ; then - crontab -l | sed "/le.sh renewAll/d" | crontab - + if crontab -l | grep 'le renewAll' ; then + crontab -l | sed "/le renewAll/d" | crontab - if command -v crond > /dev/null ; then - service crond reload 2>/dev/null + service crond reload >/dev/null else - service cron reload 2>/dev/null + service cron reload >/dev/null fi fi