| | |
| | | |
| | | # 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 \ |
| | |
| | | --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. |