mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-25 22:51:39 +00:00
Merge branch 'random' into dev
# Conflicts: # acme.sh
This commit is contained in:
commit
0533bde9f2
7
acme.sh
7
acme.sh
@ -3381,16 +3381,17 @@ installcronjob() {
|
|||||||
if [ "$_c_home" ]; then
|
if [ "$_c_home" ]; then
|
||||||
_c_entry="--config-home \"$_c_home\" "
|
_c_entry="--config-home \"$_c_home\" "
|
||||||
fi
|
fi
|
||||||
|
_t=$(_time)
|
||||||
|
random_minute=$(_math $_t % 60)
|
||||||
if _exists uname && uname -a | grep SunOS >/dev/null; then
|
if _exists uname && uname -a | grep SunOS >/dev/null; then
|
||||||
crontab -l | {
|
crontab -l | {
|
||||||
cat
|
cat
|
||||||
echo "0 0 * * * $lesh --cron --home \"$LE_WORKING_DIR\" $_c_entry> /dev/null"
|
echo "$random_minute 0 * * * $lesh --cron --home \"$LE_WORKING_DIR\" $_c_entry> /dev/null"
|
||||||
} | crontab --
|
} | crontab --
|
||||||
else
|
else
|
||||||
crontab -l | {
|
crontab -l | {
|
||||||
cat
|
cat
|
||||||
echo "0 0 * * * $lesh --cron --home \"$LE_WORKING_DIR\" $_c_entry> /dev/null"
|
echo "$random_minute 0 * * * $lesh --cron --home \"$LE_WORKING_DIR\" $_c_entry> /dev/null"
|
||||||
} | crontab -
|
} | crontab -
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user