Browse Source
Trimmed away extra white spaces
Prettyprinting
pull/1643/head
Santeri Kannisto
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
deploy/cpanel_uapi.sh
|
|
@ -19,7 +19,7 @@ __urlencode() { |
|
|
|
c=${string:$pos:1} |
|
|
|
case "$c" in |
|
|
|
[-_.~a-zA-Z0-9] ) o="${c}" ;; |
|
|
|
* ) printf -v o '%%%02x' "'$c" |
|
|
|
*) printf -v o '%%%02x' "'$c" |
|
|
|
esac |
|
|
|
encoded+="${o}" |
|
|
|
done |
|
|
@ -55,7 +55,7 @@ cpanel_uapi_deploy() { |
|
|
|
_certstr=$(cat "$_ccert") |
|
|
|
_keystr=$(cat "$_ckey") |
|
|
|
_cert=$(__urlencode "$_certstr") |
|
|
|
_key=$(__urlencode "$_keystr") |
|
|
|
_key=$(__urlencode "$_keystr") |
|
|
|
|
|
|
|
_debug _cert "$_cert" |
|
|
|
_debug _key "$_key" |
|
|
|