Upload files to "/"
This commit is contained in:
parent
593fecbd65
commit
b258a87323
@ -7,7 +7,6 @@ chmod -R 777 /export-certs 2>/dev/null || true
|
||||
|
||||
#──────────────────────────────────────────────────────────────
|
||||
# Correct base DN and hostname
|
||||
#export LDAP_HOST="${LDAP_HOST:-example.com}"
|
||||
export LDAP_HOST="${LDAP_HOST:-$(hostname)}"
|
||||
export LDAP_BASE_DN=dc=$(echo "$LDAP_HOST" | sed 's/\./,dc=/g')
|
||||
echo "--> Using LDAP base DN: ${LDAP_BASE_DN}"
|
||||
@ -143,7 +142,8 @@ EOF
|
||||
cp /etc/ldap/certs/ca-cert.pem /export-certs/mycacert.crt
|
||||
cp /etc/ldap/certs/ldap01_slapd_cert_full.pem /export-certs/server-cert.pem
|
||||
else
|
||||
echo "--> Certificates already exist — skipping generation"
|
||||
echo "--> Certificates already exist — skipping generation and using existing ones"
|
||||
export LDAPTLS_CACERT=/etc/ldap/certs/ca-cert.pem
|
||||
fi
|
||||
|
||||
# Kill temporary slapd
|
||||
@ -157,7 +157,7 @@ SLAPD_PID=$!
|
||||
|
||||
# Start Apache in background
|
||||
echo "--> Starting Apache + PHP (background)"
|
||||
apache2ctl -D FOREGROUND &
|
||||
apache2ctl -D FOREGROUND > /var/log/apache2/docker.log 2>&1 &
|
||||
APACHE_PID=$!
|
||||
|
||||
# Victory message
|
||||
|
||||
Loading…
Reference in New Issue
Block a user