Skip to content

Commit

Permalink
Fixes #10483: slapd is not started after installation of rudder-inven…
Browse files Browse the repository at this point in the history
…tory-ldap on unbutu 16.04
  • Loading branch information
peckpeck committed Mar 24, 2017
1 parent faee857 commit 3aedf21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions rudder-inventory-ldap/debian/postinst
Expand Up @@ -68,7 +68,7 @@ case "$1" in
# Stop OpenLDAP - use forcestop to avoid the init script failing
# when trying to do the backup with bad libdb versions
echo -n "INFO: Stopping rudder-slapd..."
invoke-rc.d rudder-slapd forcestop >/dev/null 2>&1
service rudder-slapd forcestop >/dev/null 2>&1
echo " Done"

# Backup the current database
Expand All @@ -88,7 +88,7 @@ case "$1" in
then
# Start OpenLDAP
echo -n "INFO: Starting rudder-slapd..."
invoke-rc.d rudder-slapd start >/dev/null 2>&1
service rudder-slapd start >/dev/null 2>&1
echo " Done"

echo "INFO: OpenLDAP database was successfully upgraded to new format"
Expand All @@ -110,7 +110,7 @@ case "$1" in

# Restart rudder-slapd to take schema changes into account
echo -n "INFO: Restarting rudder-slapd..."
invoke-rc.d rudder-slapd restart >/dev/null
service rudder-slapd restart >/dev/null
echo " Done"

# Remove slapd.confe which was due to a bug in the init script
Expand Down
2 changes: 1 addition & 1 deletion rudder-inventory-ldap/debian/prerm 100644 → 100755
Expand Up @@ -21,7 +21,7 @@ case "$1" in
remove)
# Ensure OpenLDAP is stopped
printf "INFO: Stopping rudder-slapd..."
invoke-rc.d rudder-slapd forcestop >/dev/null 2>&1
service rudder-slapd forcestop >/dev/null 2>&1
echo " Done"
;;

Expand Down

0 comments on commit 3aedf21

Please sign in to comment.