Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
1984f44f
Commit
1984f44f
authored
Jul 18, 2023
by
sg1888
Browse files
Shell formatting
parent
02de281e
Changes
1
Show whitespace changes
Inline
Side-by-side
deploy/panos.sh
View file @
1984f44f
...
@@ -130,7 +130,6 @@ panos_deploy() {
...
@@ -130,7 +130,6 @@ panos_deploy() {
_ckey
=
"
$2
"
_ckey
=
"
$2
"
_cfullchain
=
"
$5
"
_cfullchain
=
"
$5
"
# VALID FILE CHECK
# VALID FILE CHECK
if
[
!
-f
"
$_ckey
"
]
||
[
!
-f
"
$_cfullchain
"
]
;
then
if
[
!
-f
"
$_ckey
"
]
||
[
!
-f
"
$_cfullchain
"
]
;
then
_err
"Unable to find a valid key and/or cert. If this is an ECDSA/ECC cert, use the --ecc flag when deploying."
_err
"Unable to find a valid key and/or cert. If this is an ECDSA/ECC cert, use the --ecc flag when deploying."
...
@@ -174,13 +173,11 @@ panos_deploy() {
...
@@ -174,13 +173,11 @@ panos_deploy() {
unset
_panos_key
unset
_panos_key
fi
fi
#Store variables
#Store variables
_panos_host
=
$PANOS_HOST
_panos_host
=
$PANOS_HOST
_panos_user
=
$PANOS_USER
_panos_user
=
$PANOS_USER
_panos_pass
=
$PANOS_PASS
_panos_pass
=
$PANOS_PASS
#Test API Key if found. If the key is invalid, the variable _panos_key will be unset.
#Test API Key if found. If the key is invalid, the variable _panos_key will be unset.
if
[
"
$_panos_host
"
]
&&
[
"
$_panos_key
"
]
;
then
if
[
"
$_panos_host
"
]
&&
[
"
$_panos_key
"
]
;
then
_debug
"**** Testing API KEY ****"
_debug
"**** Testing API 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