|
@ -5615,16 +5615,14 @@ installcronjob() { |
|
|
_info "Installing cron job" |
|
|
_info "Installing cron job" |
|
|
if ! $_CRONTAB -l | grep "$PROJECT_ENTRY --cron"; then |
|
|
if ! $_CRONTAB -l | grep "$PROJECT_ENTRY --cron"; then |
|
|
if _exists uname && uname -a | grep SunOS >/dev/null; then |
|
|
if _exists uname && uname -a | grep SunOS >/dev/null; then |
|
|
$_CRONTAB -l | { |
|
|
|
|
|
cat |
|
|
|
|
|
echo "$random_minute $random_hour * * * $lesh --cron --home \"$LE_WORKING_DIR\" $_c_entry> /dev/null" |
|
|
|
|
|
} | $_CRONTAB -- |
|
|
|
|
|
|
|
|
_CRONTAB_STDIN="$_CRONTAB --" |
|
|
else |
|
|
else |
|
|
|
|
|
_CRONTAB_STDIN="$_CRONTAB -" |
|
|
|
|
|
fi |
|
|
$_CRONTAB -l | { |
|
|
$_CRONTAB -l | { |
|
|
cat |
|
|
cat |
|
|
echo "$random_minute $random_hour * * * $lesh --cron --home \"$LE_WORKING_DIR\" $_c_entry> /dev/null" |
|
|
echo "$random_minute $random_hour * * * $lesh --cron --home \"$LE_WORKING_DIR\" $_c_entry> /dev/null" |
|
|
} | $_CRONTAB - |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
} | $_CRONTAB_STDIN |
|
|
fi |
|
|
fi |
|
|
if [ "$?" != "0" ]; then |
|
|
if [ "$?" != "0" ]; then |
|
|
_err "Install cron job failed. You need to manually renew your certs." |
|
|
_err "Install cron job failed. You need to manually renew your certs." |
|
|