Browse Source

uninstall without crontab.

neil 9 years ago
parent
commit
37db5b8131
1 changed files with 3 additions and 0 deletions
  1. 3 0
      le.sh

+ 3 - 0
le.sh

@@ -1390,6 +1390,9 @@ installcronjob() {
 }
 
 uninstallcronjob() {
+  if ! _exists "crontab" ; then
+    return
+  fi
   _info "Removing cron job"
   cr="$(crontab -l | grep 'le.sh cron')"
   if [ "$cr" ] ; then