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
89002ed2
Commit
89002ed2
authored
Sep 20, 2016
by
neil
Browse files
support AUTO_UPGRADE. In the cron job, try to upgrade acme.sh if "AUTO_UPGRADE" is set.
parent
d0871bda
Changes
1
Show whitespace changes
Inline
Side-by-side
acme.sh
View file @
89002ed2
#!/usr/bin/env sh
VER
=
2.5.
3
VER=2.5.
4
PROJECT_NAME="acme.sh"
...
...
@@ -2754,6 +2754,8 @@ _initconf() {
#LOG_FILE=\"$DEFAULT_LOG_FILE\"
#AUTO_UPGRADE=""
#STAGE=1 # Use the staging api
#FORCE=1 # Force to issue cert
#DEBUG=1 # Debug mode
...
...
@@ -3020,6 +3022,19 @@ uninstall() {
cron() {
IN_CRON=1
_initpath
if [ "$AUTO_UPGRADE" ] ; then
export LE_WORKING_DIR
(
. $LE_WORKING_DIR/$PROJECT_ENTRY >/dev/null
if ! upgrade ; then
_err "Cron:Upgrade failed!"
return 1
fi
)
. $LE_WORKING_DIR/$PROJECT_ENTRY >/dev/null
_info "Auto upgraded to: $VER"
fi
renewAll
_ret="$?"
IN_CRON=""
...
...
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