_err "No host, user and pass found.. If this is the first time deploying please set PANOS_HOST, PANOS_USER and PANOS_PASS in environment variables. Delete them after you have succesfully deployed certs."
_err "No host, user and pass found.. If this is the first time deploying please set PANOS_HOST, PANOS_USER and PANOS_PASS in environment variables. Delete them after you have succesfully deployed certs."
return 1
return 1
...
@@ -140,28 +144,33 @@ panos_deploy() {
...
@@ -140,28 +144,33 @@ panos_deploy() {
_panos_user="$PANOS_USER"
_panos_user="$PANOS_USER"
_panos_pass="$PANOS_PASS"
_panos_pass="$PANOS_PASS"
_panos_host="$PANOS_HOST"
_panos_host="$PANOS_HOST"
if["$PANOS_KEY"];then
_savedeployconf PANOS_KEY "$PANOS_KEY" 1
_panos_key="$PANOS_KEY"
else
_getdeployconf PANOS_KEY
_panos_key=$PANOS_KEY
fi
fi
fi
_debug "Let's use username and pass to generate token."
_debug "Let's use username and pass to generate token."