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
2077a70d
Commit
2077a70d
authored
Feb 11, 2020
by
Paul Nguyen
Browse files
Fixing gitdiff
parent
cbdb8bd9
Changes
1
Hide whitespace changes
Inline
Side-by-side
deploy/panos.sh
View file @
2077a70d
...
@@ -34,7 +34,6 @@ deployer() {
...
@@ -34,7 +34,6 @@ deployer() {
type
=
$1
# Types are keygen, cert, key, commit
type
=
$1
# Types are keygen, cert, key, commit
_debug
"**** Deploying
$type
*****"
_debug
"**** Deploying
$type
*****"
panos_url
=
"https://
$_panos_host
/api/"
panos_url
=
"https://
$_panos_host
/api/"
if
[
"
$type
"
=
'keygen'
]
;
then
if
[
"
$type
"
=
'keygen'
]
;
then
_H1
=
"Content-Type: application/x-www-form-urlencoded"
_H1
=
"Content-Type: application/x-www-form-urlencoded"
content
=
"type=keygen&user=
$_panos_user
&password=
$_panos_pass
"
content
=
"type=keygen&user=
$_panos_user
&password=
$_panos_pass
"
...
@@ -47,7 +46,6 @@ deployer() {
...
@@ -47,7 +46,6 @@ deployer() {
nl
=
"
\0
15
\0
12"
nl
=
"
\0
15
\0
12"
#Set Header
#Set Header
export
_H1
=
"Content-Type: multipart/form-data; boundary=
$delim
"
export
_H1
=
"Content-Type: multipart/form-data; boundary=
$delim
"
if
[
"
$type
"
=
'cert'
]
;
then
if
[
"
$type
"
=
'cert'
]
;
then
content
=
"
$content
${
nl
}
--
$delim
${
nl
}
Content-Disposition: form-data; name=
\"
type
\"\r\n\r\n\r\n
import"
content
=
"
$content
${
nl
}
--
$delim
${
nl
}
Content-Disposition: form-data; name=
\"
type
\"\r\n\r\n\r\n
import"
content
=
"
$content
${
nl
}
--
$delim
${
nl
}
Content-Disposition: form-data; name=
\"
category
\"\r\n\r\n\r\n
certificate"
content
=
"
$content
${
nl
}
--
$delim
${
nl
}
Content-Disposition: form-data; name=
\"
category
\"\r\n\r\n\r\n
certificate"
...
...
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