Browse Source

add newlines to ca_all_loc

If the properties in /directory are not seperated by newlines the URL_
variables will all contain the first URL.
To combat this we just add newlines after every ",".
pull/862/head
Markus Bach 1 year ago
parent
commit
63ab5712f9
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      getssl

+ 2
- 0
getssl View File

@ -2312,6 +2312,8 @@ obtain_ca_resource_locations()
fi
debug "ca_all_loc from ${CA}${suffix} gives $ca_all_loc"
ca_all_loc=${ca_all_loc//,/,$'\n'}
# APIv1
URL_new_reg=$(echo "$ca_all_loc" | grep "new-reg" | awk -F'"' '{print $4}')
URL_new_authz=$(echo "$ca_all_loc" | grep "new-authz" | awk -F'"' '{print $4}')


Loading…
Cancel
Save