mirror of
https://github.com/outbackdingo/labca.git
synced 2026-01-27 18:19:33 +00:00
Merge branch 'master' into develop
* master: fixed the creation of the hostname-policy.yaml file when use Whitelist option
This commit is contained in:
@@ -39,7 +39,7 @@ fi
|
||||
if [ "$PKI_DOMAIN_MODE" == "whitelist" ] && [ "$PKI_WHITELIST_DOMAINS" != "" ]; then
|
||||
echo >> hostname-policy.yaml
|
||||
echo "# Whitelist are the domains that this LabCA instance can issue certificates for" >> hostname-policy.yaml
|
||||
echo "in *addition* to all normal public domains" >> hostname-policy.yaml
|
||||
echo "# in *addition* to all normal public domains" >> hostname-policy.yaml
|
||||
echo "Whitelist:" >> hostname-policy.yaml
|
||||
for d in $(echo $PKI_WHITELIST_DOMAINS | sed -e "s/\\\r\\\n/ /g" | tr '\r' ' '); do
|
||||
echo " - \"$d\"" >> hostname-policy.yaml
|
||||
|
||||
Reference in New Issue
Block a user