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
a2d6daae
Commit
a2d6daae
authored
Aug 25, 2017
by
neilpang
Browse files
fix cpanel_uapi.sh
parent
48e9006c
Changes
1
Show whitespace changes
Inline
Side-by-side
deploy/cpanel_uapi.sh
View file @
a2d6daae
...
@@ -44,7 +44,7 @@ cpanel_uapi_deploy() {
...
@@ -44,7 +44,7 @@ cpanel_uapi_deploy() {
if
[
"
$(
id
-u
)
"
=
0
]
;
then
if
[
"
$(
id
-u
)
"
=
0
]
;
then
if
[
-z
"
$DEPLOY_CPANEL_USER
"
]
;
then
if
[
-z
"
$DEPLOY_CPANEL_USER
"
]
;
then
_err
"It seems that you are root, please define the target user name: export DEPLOY_CPANEL_USER=username"
_err
"It seems that you are root, please define the target user name: export DEPLOY_CPANEL_USER=username"
return
1
;
return
1
fi
fi
_savedomainconf DEPLOY_CPANEL_USER
"
$DEPLOY_CPANEL_USER
"
_savedomainconf DEPLOY_CPANEL_USER
"
$DEPLOY_CPANEL_USER
"
_response
=
$(
uapi
--user
=
"
$DEPLOY_CPANEL_USER
"
SSL install_ssl
domain
=
"
$_cdomain
"
cert
=
"
$_cert
"
key
=
"
$_key
"
)
_response
=
$(
uapi
--user
=
"
$DEPLOY_CPANEL_USER
"
SSL install_ssl
domain
=
"
$_cdomain
"
cert
=
"
$_cert
"
key
=
"
$_key
"
)
...
...
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