Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/debian/libnss-ldapd.postinst
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2007-08-19 11:16:16 +0200
committerArthur de Jong <arthur@arthurdejong.org>2007-08-19 11:16:16 +0200
commit39de31542ef374299b8b59dbc3db6218121bc8a1 (patch)
tree03b73139440683da2391c6012d6cb575e7ccbb94 /debian/libnss-ldapd.postinst
parent094c131636b5cb8dc97953a8781e194cc0484e66 (diff)
only restart nscd on configure
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@349 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'debian/libnss-ldapd.postinst')
-rw-r--r--debian/libnss-ldapd.postinst10
1 files changed, 3 insertions, 7 deletions
diff --git a/debian/libnss-ldapd.postinst b/debian/libnss-ldapd.postinst
index 6e572b7..d141f23 100644
--- a/debian/libnss-ldapd.postinst
+++ b/debian/libnss-ldapd.postinst
@@ -231,13 +231,9 @@ then
# TODO: create backups of /etc/nsswitch.conf and configfile
# (probably store orig in tmpfile and if diff install it
# as backup)
-fi
-
-# restart nscd to pick up changes in nsswitch.conf
-# (other processes will have to be restarted manually)
-if [ -s /usr/sbin/nscd ]
-then
- if [ `pidof -s nscd` ]
+ # restart nscd to pick up changes in nsswitch.conf
+ # (other processes will have to be restarted manually)
+ if [ -s /usr/sbin/nscd ] && [ `pidof -s nscd` ]
then
if which invoke-rc.d >/dev/null 2>&1
then