From: scantor Date: Thu, 29 Nov 2012 03:37:51 +0000 (+0000) Subject: https://issues.shibboleth.net/jira/browse/SSPCPP-501 X-Git-Url: http://www.project-moonshot.org/gitweb/?a=commitdiff_plain;h=23d3ed76d0b226c9b79b682d571537ba47fbfe96;hp=9a11630985691a92c67a7996f2db0ddc7a15fc84;p=shibboleth%2Fsp.git https://issues.shibboleth.net/jira/browse/SSPCPP-501 git-svn-id: https://svn.shibboleth.net/cpp-sp/branches/REL_2@3824 cb58f699-b61c-0410-a6fe-9272a202ed29 --- diff --git a/configs/metagen.sh b/configs/metagen.sh index 84090c1..1761035 100755 --- a/configs/metagen.sh +++ b/configs/metagen.sh @@ -1,4 +1,4 @@ -#! /bin/sh +#!/usr/bin/env bash DECLS=1 @@ -23,13 +23,14 @@ SAML20PAOS="urn:oasis:names:tc:SAML:2.0:bindings:PAOS" SAML1POST="urn:oasis:names:tc:SAML:1.0:profiles:browser-post" SAML1ART="urn:oasis:names:tc:SAML:1.0:profiles:artifact-01" -while getopts a:c:e:f:h:n:o:s:t:u:12ADLNO c +while getopts a:c:e:f:h:l:n:o:s:t:u:12ADLNO c do case $c in c) CERTS[${#CERTS[*]}]=$OPTARG;; e) ENTITYID=$OPTARG;; f) FORMATS[${#FORMATS[*]}]=$OPTARG;; h) HOSTS[${#HOSTS[*]}]=$OPTARG;; + l) HOSTLIST=$OPTARG;; n) NAKEDHOSTS[${#NAKEDHOSTS[*]}]=$OPTARG;; o) ORGNAME=$OPTARG;; a) ADMIN[${#ADMIN[*]}]=$OPTARG;; @@ -73,6 +74,16 @@ if [ -z $ENTITYID ] ; then fi fi +if [ -s $HOSTLIST ] ; then + while read h + do + HOSTS[${#HOSTS[@]}]=$h + done <$HOSTLIST +else + echo File with list of hostnames $l does not exist! + exit 2 +fi + # Establish protocols and bindings. if [ $SAML1 -eq 0 -a $SAML2 -eq 0 ] ; then