Skip to content

Commit 52b42ca

Browse files
committed
Merge branch 'abinet-stable' into hotfix-1.2.2
2 parents a573ddd + 23fb43a commit 52b42ca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

image/service/slapd/startup.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)