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
4a0f23e2
Commit
4a0f23e2
authored
Mar 27, 2016
by
neil
Browse files
Install online, git is not need.
parent
a34bd89f
Changes
1
Hide whitespace changes
Inline
Side-by-side
le.sh
View file @
4a0f23e2
...
...
@@ -674,16 +674,12 @@ _initpath() {
fi
dp
=
"
$LE_WORKING_DIR
/curl.dump"
CURL
=
"curl --silent"
CURL
=
"curl
-L
--silent"
if
[
"
$DEBUG
"
]
;
then
CURL
=
"
$CURL
--trace-ascii
$dp
"
CURL
=
"
$CURL
-L
--trace-ascii
$dp
"
fi
domain
=
"
$1
"
if
!
mkdir
-p
"
$LE_WORKING_DIR
"
;
then
_err
"Can not craete working dir:
$LE_WORKING_DIR
"
return
1
fi
if
[
-z
"
$ACCOUNT_KEY_PATH
"
]
;
then
ACCOUNT_KEY_PATH
=
"
$LE_WORKING_DIR
/account.key"
...
...
@@ -1517,7 +1513,12 @@ install() {
fi
_info
"Installing to
$LE_WORKING_DIR
"
if
!
mkdir
-p
"
$LE_WORKING_DIR
"
;
then
_err
"Can not craete working dir:
$LE_WORKING_DIR
"
return
1
fi
cp
le.sh
"
$LE_WORKING_DIR
/"
&&
chmod
+x
"
$LE_WORKING_DIR
/le.sh"
if
[
"
$?
"
!=
"0"
]
;
then
...
...
@@ -1614,6 +1615,36 @@ createCSR:
"
}
_installOnline
()
{
_info
"Installing from online archive."
if
[
!
"
$BRANCH
"
]
;
then
BRANCH
=
"master"
fi
_initpath
target
=
"
$PROJECT
/archive/
$BRANCH
.tar.gz"
_info
"Downloading
$target
"
localname
=
"
$BRANCH
.tar.gz"
if
!
_get
"
$target
"
>
$localname
;
then
_debug
"Download error."
return
1
fi
_info
"Extracting
$localname
"
tar
xzf
$localname
cd
"le-
$BRANCH
"
chmod
+x le.sh
if
./le.sh
install
;
then
_info
"Install success!"
fi
cd
..
rm
-rf
"le-
$BRANCH
"
rm
-f
"
$localname
"
}
if
[
"
$INSTALLONLINE
"
]
;
then
_installOnline
$BRANCH
exit
fi
if
[
-z
"
$1
"
]
;
then
showhelp
...
...
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