You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This is the main function that will call the other functions to deploy everything.
171
171
panos_deploy() {
172
+
_cdomain=$(echo "$1"| sed 's/*/WILDCARD_/g')#Wildcard Safe Filename
172
173
_ckey="$2"
173
174
_cfullchain="$5"
174
175
@@ -242,13 +243,13 @@ panos_deploy() {
242
243
_getdeployconf PANOS_VSYS
243
244
fi
244
245
245
-
#PANOS_FILENAME
246
-
if [ "$PANOS_FILENAME" ];then
247
-
_debug "Detected ENV variable PANOS_FILENAME. Saving to file."
248
-
_savedeployconf PANOS_FILENAME"$PANOS_FILENAME" 1
246
+
#PANOS_CERTNAME
247
+
if [ "$PANOS_CERTNAME" ];then
248
+
_debug "Detected ENV variable PANOS_CERTNAME. Saving to file."
249
+
_savedeployconf PANOS_CERTNAME"$PANOS_CERTNAME" 1
249
250
else
250
-
_debug "Attempting to load variable PANOS_FILENAME from file."
251
-
_getdeployconf PANOS_FILENAME
251
+
_debug "Attempting to load variable PANOS_CERTNAME from file."
252
+
_getdeployconf PANOS_CERTNAME
252
253
fi
253
254
254
255
#Store variables
@@ -258,7 +259,7 @@ panos_deploy() {
258
259
_panos_template=$PANOS_TEMPLATE
259
260
_panos_template_stack=$PANOS_TEMPLATE_STACK
260
261
_panos_vsys=$PANOS_VSYS
261
-
_panos_filename=$PANOS_FILENAME
262
+
_panos_certname=$PANOS_CERTNAME
262
263
263
264
#Test API Key if found. If the key is invalid, the variable _panos_key will be unset.
264
265
if [ "$_panos_host" ] && [ "$_panos_key" ];then
@@ -277,10 +278,10 @@ panos_deploy() {
277
278
_err "No password found. If this is your first time deploying, please set PANOS_PASS in ENV variables. You can delete it after you have successfully deployed the certs."
278
279
return 1
279
280
else
280
-
# Use filename based on the first domain on the certificate if no custom filename is set
281
-
if [ -z"$_panos_filename" ];then
282
-
_panos_filename=$(echo "$1"| sed 's/*/WILDCARD_/g')#Wildcard Safe Filename
0 commit comments