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
77546ea5
Commit
77546ea5
authored
Mar 29, 2016
by
neil
Browse files
Force to Install without crontab.
parent
95fd753f
Changes
1
Hide whitespace changes
Inline
Side-by-side
le.sh
View file @
77546ea5
...
...
@@ -1364,6 +1364,13 @@ installcert() {
installcronjob
()
{
_initpath
if
!
_exists
"crontab"
;
then
_err
"crontab doesn't exist, so, we can not install cron jobs."
_err
"All your certs will not be renewed automatically."
_err
"You must add your own cron job to call 'le.sh cron' everyday."
return
1
fi
_info
"Installing cron job"
if
!
crontab
-l
|
grep
'le.sh cron'
;
then
if
[
-f
"
$LE_WORKING_DIR
/le.sh"
]
;
then
...
...
@@ -1481,9 +1488,14 @@ _precheck() {
fi
if
!
_exists
"crontab"
;
then
_err
"
Please
install crontab first. try to install 'cron, crontab, crontabs or vixie-cron'."
_err
"
It is recommended to
install crontab first. try to install 'cron, crontab, crontabs or vixie-cron'."
_err
"We need to set cron job to renew the certs automatically."
return
1
_err
"Otherwise, your certs will not be able to be renewed automatically."
if
[
-z
"
$FORCE
"
]
;
then
_err
"Please define 'FORCE=1' and try install again to go without crontab."
_err
"FORCE=1 ./le.sh install"
return
1
fi
fi
if
!
_exists
"openssl"
;
then
...
...
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