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
59519f04
Unverified
Commit
59519f04
authored
Oct 02, 2022
by
neil
Committed by
GitHub
Oct 02, 2022
Browse files
Merge pull request #4334 from sasburg/patch-1
Added parked_domans
parents
d761bdc1
e02f07d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
deploy/cpanel_uapi.sh
View file @
59519f04
...
...
@@ -173,7 +173,7 @@ cpanel_uapi_deploy() {
######## Private functions #####################
# Internal utility to process YML from UAPI -
only
looks at main_domain
and sub_
domains
# Internal utility to process YML from UAPI - looks at main_domain
, sub_domains, addon domains and parked
domains
#[response]
__cpanel_parse_response
()
{
if
[
$#
-gt
0
]
;
then
resp
=
"
$*
"
;
else
resp
=
"
$(
cat
)
"
;
fi
...
...
@@ -194,7 +194,7 @@ __cpanel_parse_response() {
printf("%s%s=%s\n", prefix, $2, $3);
}
}'
|
sed
-En
-e
's/^result\/data\/(main_domain|sub_domains\/-|addon_domains\/-)=(.*)$/\2/p'
sed
-En
-e
's/^result\/data\/(main_domain|sub_domains\/-|addon_domains\/-
|parked_domains\/-
)=(.*)$/\2/p'
}
# Load parameter by prefix+name - fallback to default if not set, and save to config
...
...
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