mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-22 05:01:40 +00:00
minor, fix uninstall messages.
This commit is contained in:
parent
5419c23f62
commit
ae5f79d80a
12
le.sh
12
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
|
||||
|
Loading…
Reference in New Issue
Block a user