File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -87,8 +87,8 @@ if [ ! -e "$FIRST_START_DONE" ]; then
8787 # database and config directory are empty
8888 # setup bootstrap config - Part 1
8989 #
90- if [ -z " $( ls -A -I lost+found -I .rmtab -I .gitignore /var/lib/ldap) " ] && \
91- [ -z " $( ls -A -I lost+found -I .rmtab -I .gitignore /etc/ldap/slapd.d) " ]; then
90+ if [ -z " $( ls -A -I lost+found --ignore=. * /var/lib/ldap) " ] && \
91+ [ -z " $( ls -A -I lost+found --ignore=. * /etc/ldap/slapd.d) " ]; then
9292
9393 BOOTSTRAP=true
9494 log-helper info " Database and config directory are empty..."
@@ -133,14 +133,14 @@ EOF
133133 #
134134 # Error: the database directory (/var/lib/ldap) is empty but not the config directory (/etc/ldap/slapd.d)
135135 #
136- elif [ -z " $( ls -A -I lost+found -I .rmtab /var/lib/ldap) " ] && [ ! -z " $( ls -A -I lost+found -I .rmtab /etc/ldap/slapd.d) " ]; then
136+ elif [ -z " $( ls -A -I lost+found --ignore=. * /var/lib/ldap) " ] && [ ! -z " $( ls -A -I lost+found --ignore=. * /etc/ldap/slapd.d) " ]; then
137137 log-helper error " Error: the database directory (/var/lib/ldap) is empty but not the config directory (/etc/ldap/slapd.d)"
138138 exit 1
139139
140140 #
141141 # Error: the config directory (/etc/ldap/slapd.d) is empty but not the database directory (/var/lib/ldap)
142142 #
143- elif [ ! -z " $( ls -A -I lost+found -I .rmtab /var/lib/ldap) " ] && [ -z " $( ls -A -I lost+found -I .rmtab /etc/ldap/slapd.d) " ]; then
143+ elif [ ! -z " $( ls -A -I lost+found --ignore=. * /var/lib/ldap) " ] && [ -z " $( ls -A -I lost+found --ignore=. * /etc/ldap/slapd.d) " ]; then
144144 log-helper error " Error: the config directory (/etc/ldap/slapd.d) is empty but not the database directory (/var/lib/ldap)"
145145 exit 1
146146
You can’t perform that action at this time.
0 commit comments