Browse Source

fix uninstall, compatible with previous versions

neil 9 years ago
parent
commit
85fb3776eb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      le.sh

+ 2 - 2
le.sh

@@ -656,8 +656,8 @@ uninstall() {
   _initpath
   _info "Removing cron job"
 
-  if crontab -l | grep 'le renewAll' ; then 
-    crontab -l | sed "/le 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 >/dev/null
     else