diff --git a/start b/start index 29161c7..b0c84f4 100755 --- a/start +++ b/start @@ -3,15 +3,17 @@ set -euo pipefail echo "Generating LDIF" - -cotak.gov - echo "Domain: ${LDAPDomain}" ORG=$(echo "${LDAPDomain}" | sed 's/\..*$//') TLD=$(echo "${LDAPDomain}" | sed 's/^.*\.//') +echo "ORG: ${ORG}" +echo "TLD: ${TLD}" + for filename in /container/templates/; do + echo "Building ${filename}" + sed -i "s/\$\{ORG\}/${ORG}/" "${filename}" sed -i "s/\$\{ORG\}/${TLD}/" "${filename}"