Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to startup.sh to add messages #595

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions image/service/slapd/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ EOF
# We have a database and config directory
#
else
log-helper info "Database and config directory have existing content"

# try to detect if ldap backend is hdb but LDAP_BACKEND environment variable is mdb
# due to default switch from hdb to mdb in 1.2.x
Expand All @@ -258,7 +259,7 @@ EOF
fi

if [ "${KEEP_EXISTING_CONFIG,,}" == "true" ]; then
log-helper info "/!\ KEEP_EXISTING_CONFIG = true configration will not be updated"
log-helper info "/!\ KEEP_EXISTING_CONFIG = true, configuration will not be updated"
else
#
# start OpenLDAP
Expand Down Expand Up @@ -376,6 +377,8 @@ EOF
ldap_add_or_modify "$f"
done

else
log-helper info "Bootstrap was skipped"
fi

#
Expand Down Expand Up @@ -524,7 +527,7 @@ EOF
#
# stop OpenLDAP
#
log-helper info "Stop OpenLDAP..."
log-helper info "Stopping OpenLDAP..."

SLAPD_PID=$(cat /run/slapd/slapd.pid)
kill -15 $SLAPD_PID
Expand Down Expand Up @@ -552,6 +555,8 @@ EOF
if [ "${LDAP_REMOVE_CONFIG_AFTER_SETUP,,}" == "true" ]; then
log-helper info "Remove config files..."
rm -rf ${CONTAINER_SERVICE_DIR}/slapd/assets/config
else
log-helper info "Leaving config files..."
fi

#
Expand Down