mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-25 14:41:40 +00:00
minor, use WORKING_DIR/le.sh to run cronjob. removes the dependency to "which" command.
This commit is contained in:
parent
17c100d6ff
commit
18629d0fdd
4
le.sh
4
le.sh
@ -888,9 +888,7 @@ installcronjob() {
|
||||
_initpath
|
||||
_info "Installing cron job"
|
||||
if ! crontab -l | grep 'le.sh cron' ; then
|
||||
if command -v "le.sh" > /dev/null ; then
|
||||
lesh="$(which le.sh)"
|
||||
elif [ -f "$WORKING_DIR/le.sh" ] ; then
|
||||
if [ -f "$WORKING_DIR/le.sh" ] ; then
|
||||
lesh="\"$WORKING_DIR\"/le.sh"
|
||||
else
|
||||
_err "Can not install cronjob, le.sh not found."
|
||||
|
Loading…
Reference in New Issue
Block a user