From 5c77c9795446dff00253c169c331f7ad0726b70a Mon Sep 17 00:00:00 2001 From: Paul Date: Thu, 18 Apr 2019 21:00:07 +0200 Subject: [PATCH] Indent --- entrypoint.sh | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index a1d5e32..93d4872 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -6,12 +6,12 @@ CONFDIR=${CONFDIR:-'/etc/ldap/slapd.d'} DATADIR=${DATADIR:-'/var/lib/ldap'} if [[ -z "$ORGANIZATION" && -z "$SUFFIX" ]] ; then - fail 'neither ORGANIZATION nor SUFFIX supplied as environment var' + fail 'neither ORGANIZATION nor SUFFIX supplied as environment var' fi if [[ -n "$ORGANIZATION" ]] ; then - # if an organization was set, we can generate the RootDN from that - SUFFIX=${SUFFIX:-"o=${ORGANIZATION}"} + # if an organization was set, we can generate the RootDN from that + SUFFIX=${SUFFIX:-"o=${ORGANIZATION}"} fi function fail { @@ -32,11 +32,13 @@ function configure { } function init_fixtures { - mkdir -p /docker-entrypoint-initdb.d - # if no files exist in this directory then copy example structure - if ! ls /docker-entrypoint-initdb.d/* 1> /dev/null 2>&1 ; then - cp /usr/share/slapd/fixtures/example_structure.ldif /docker-entrypoint-initdb.d/structure.ldif - fi + mkdir -p /docker-entrypoint-initdb.d + # if no files exist in this directory then copy example structure + if ! ls /docker-entrypoint-initdb.d/* 1> /dev/null 2>&1 ; then + cp \ + /usr/share/slapd/fixtures/example_structure.ldif \ + /docker-entrypoint-initdb.d/ + fi for f in /docker-entrypoint-initdb.d/*; do