Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
92dbe6cd
Commit
92dbe6cd
authored
Oct 12, 2020
by
Marcel Waldvogel
Browse files
Simplify and clarify SunOS crontab differences
parent
0781e8cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
92dbe6cd
...
...
@@ -5615,16 +5615,14 @@ installcronjob() {
_info
"Installing cron job"
if
!
$_CRONTAB
-l
|
grep
"
$PROJECT_ENTRY
--cron"
;
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
$_CRONTAB
-l
|
{
cat
echo
"
$random_minute
$random_hour
* * *
$lesh
--cron --home
\"
$LE_WORKING_DIR
\"
$_c_entry
> /dev/null"
}
|
$_CRONTAB
-
_CRONTAB_STDIN
=
"
$_CRONTAB
-"
fi
$_CRONTAB
-l
|
{
cat
echo
"
$random_minute
$random_hour
* * *
$lesh
--cron --home
\"
$LE_WORKING_DIR
\"
$_c_entry
> /dev/null"
}
|
$_CRONTAB_STDIN
fi
if
[
"
$?
"
!=
"0"
]
;
then
_err
"Install cron job failed. You need to manually renew your certs."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment