mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-06-15 19:32:44 +00:00
Merge 8f7492b447d29f41f4b03916dba2d7a01cafe9f9 into fb6d3ab2852553c8af8414e91ce62053d389d936
This commit is contained in:
commit
0be37c3aa9
4
le.sh
4
le.sh
@ -1489,12 +1489,12 @@ installcronjob() {
|
||||
_err "Can not install cronjob, le.sh not found."
|
||||
return 1
|
||||
fi
|
||||
crontab -l | { cat; echo "0 0 * * * LE_WORKING_DIR=\"$LE_WORKING_DIR\" $lesh cron > /dev/null"; } | crontab -
|
||||
crontab -l | { cat; echo "0 0 * * * LE_WORKING_DIR=\"$LE_WORKING_DIR\" ACCOUNT_CONF_PATH=\"$ACCOUNT_CONF_PATH\" $lesh cron > /dev/null"; } | crontab -
|
||||
fi
|
||||
if [[ "$?" != "0" ]] ; then
|
||||
_err "Install cron job failed. You need to manually renew your certs."
|
||||
_err "Or you can add cronjob by yourself:"
|
||||
_err "LE_WORKING_DIR=\"$LE_WORKING_DIR\" $lesh cron > /dev/null"
|
||||
_err "LE_WORKING_DIR=\"$LE_WORKING_DIR\" ACCOUNT_CONF_PATH=\"$ACCOUNT_CONF_PATH\" $lesh cron > /dev/null"
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user