mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-11-14 10:21:45 +00:00
fix uninstall
This commit is contained in:
parent
01ba821632
commit
6d0a26f4f2
10
le.sh
10
le.sh
@ -639,7 +639,7 @@ install() {
|
|||||||
SUDO=sudo
|
SUDO=sudo
|
||||||
fi
|
fi
|
||||||
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 -
|
crontab -l | { cat; echo "0 0 * * * $SUDO le renewAll > /dev/null"; } | crontab -
|
||||||
if command -v crond > /dev/null ; then
|
if command -v crond > /dev/null ; then
|
||||||
service crond reload >/dev/null
|
service crond reload >/dev/null
|
||||||
@ -656,12 +656,12 @@ uninstall() {
|
|||||||
_initpath
|
_initpath
|
||||||
_info "Removing cron job"
|
_info "Removing cron job"
|
||||||
|
|
||||||
if crontab -l | grep 'le.sh renewAll' ; then
|
if crontab -l | grep 'le renewAll' ; then
|
||||||
crontab -l | sed "/le.sh renewAll/d" | crontab -
|
crontab -l | sed "/le renewAll/d" | crontab -
|
||||||
if command -v crond > /dev/null ; then
|
if command -v crond > /dev/null ; then
|
||||||
service crond reload 2>/dev/null
|
service crond reload >/dev/null
|
||||||
else
|
else
|
||||||
service cron reload 2>/dev/null
|
service cron reload >/dev/null
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user