mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Tobias Gesellchen
25.03.2022 a06b8cb1b003928614eb8898b706fd29684224e9
Copy ldif configs to the correct template directory (#260)

1 files modified
26 ■■■■ changed files
opendj-packages/opendj-docker/bootstrap/setup.sh 26 ●●●● patch | view | raw | blame | history
opendj-packages/opendj-docker/bootstrap/setup.sh
@@ -5,6 +5,19 @@
# If any optional LDIF files are present load them
# There are multiple types of ldif files.
# This step makes plain copies.
# See below for imports via `ldapmodify`.
if [ -d /opt/opendj/bootstrap/config/schema/ ]; then
  echo "Copying schema:"
  mkdir -p /opt/opendj/template/config/schema
  for file in /opt/opendj/bootstrap/config/schema/*; do
    target_file="/opt/opendj/template/config/schema/$(basename -- $file)"
    echo "Copying $file to $target_file"
    cp "$file" "$target_file"
  done
fi
/opt/opendj/setup \
  --cli \
  -h localhost \
@@ -21,19 +34,6 @@
  --doNotStart \
  $ADD_BASE_ENTRY #--sampleData 1
# There are multiple types of ldif files.
# This step makes plain copies.
# See below for imports via `ldapmodify`.
if [ -d /opt/opendj/bootstrap/config/schema/ ]; then
  echo "Copying schema:"
  mkdir -p /opt/opendj/config/schema
  for file in /opt/opendj/bootstrap/config/schema/*; do
    target_file="/opt/opendj/config/schema/$(basename -- $file)"
    echo "Copying $file to $target_file"
    cp $file $target_file
  done
fi
/opt/opendj/bin/start-ds
# There are multiple types of ldif files.