ready for first build, I hope
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user