Skip to content

Commit

Permalink
Avoid regex chars
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Oct 22, 2024
1 parent 81f645b commit 6df7f4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions start
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ echo "TLD: ${TLD}"
for filename in /container/templates/; do
echo "Building ${filename}"

sed -i "s/\$\{ORG\}/${ORG}/" "${filename}"
sed -i "s/\$\{ORG\}/${TLD}/" "${filename}"
sed -i "s/CUSTOM_ORG/${ORG}/" "${filename}"
sed -i "s/CUSTOM_TLD/${TLD}/" "${filename}"

cp "${filename}" "/container/service/slapd/assets/config/bootstrap/ldif/"
done
Expand Down
4 changes: 2 additions & 2 deletions templates/05-orgUnit.ldif
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dn: ou=People,dc=${ORG},dc=${TLD}
dn: ou=People,dc=CUSTOM_ORG,dc=CUSTOM_TLD
objectclass: organizationalUnit
ou: People
dn: ou=Group,dc=${ORG},dc=${TLD}
dn: ou=Group,dc=CUSTOM_ORG,dc=CUSTOM_TLD
objectclass: organizationalUnit
ou: Group

0 comments on commit 6df7f4d

Please sign in to comment.