File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ if [ ! -e "$FIRST_START_DONE" ]; then
6060 # database and config directory are empty
6161 # setup bootstrap config - Part 1
6262 #
63- if [ -z " $( ls -A /var/lib/ldap) " ] && [ -z " $( ls -A /etc/ldap/slapd.d) " ]; then
63+ if [ -z " $( ls -A -I lost+found /var/lib/ldap) " ] && [ -z " $( ls -A -I lost+found /etc/ldap/slapd.d) " ]; then
6464
6565 BOOTSTRAP=true
6666 log-helper info " Database and config directory are empty..."
8787 #
8888 # Error: the database directory (/var/lib/ldap) is empty but not the config directory (/etc/ldap/slapd.d)
8989 #
90- elif [ -z " $( ls -A /var/lib/ldap) " ] && [ ! -z " $( ls -A /etc/ldap/slapd.d) " ]; then
90+ elif [ -z " $( ls -A -I lost+found /var/lib/ldap) " ] && [ ! -z " $( ls -A -I lost+found /etc/ldap/slapd.d) " ]; then
9191 log-helper error " Error: the database directory (/var/lib/ldap) is empty but not the config directory (/etc/ldap/slapd.d)"
9292 exit 1
9393
You can’t perform that action at this time.
0 commit comments