ready for first build, I hope

This commit is contained in:
2019-09-02 10:48:39 +00:00
parent abc6d3949a
commit d17de44d8c
4 changed files with 36 additions and 7 deletions

View File

@ -1,9 +1,7 @@
#!/bin/bash
echo "new docker-entrypoint.sh head"
pushd /etc
cat ldap.conf-tmpl | sed -e "s/%LDAPBASE%/$LDAPBASE/" -e "s,%LDAPURI%,$LDAPURI," -e "s/%LDAPBINDDN%/$LDAPBINDDN/" -e "s/%LDAPBINDPW%/$LDAPBINDPW/" > ldap.conf
popd
if [ `whoami` = 'root' ]; then
(cd /etc && cat ldap.conf-tmpl | sed -e "s/%LDAPBASE%/$LDAPBASE/" -e "s,%LDAPURI%,$LDAPURI," -e "s/%LDAPBINDDN%/$LDAPBINDDN/" -e "s/%LDAPBINDPW%/$LDAPBINDPW/" > ldap.conf)
fi