Skip to content

Commit

Permalink
Add Filename
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Oct 22, 2024
1 parent 3acd698 commit 6e95af0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions start
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down

0 comments on commit 6e95af0

Please sign in to comment.