Skip to content

Commit 4aea811

Browse files
committed
Skip re-installing slapd et al
1 parent 128a9ea commit 4aea811

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

script/install-openldap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ set -x
55
BASE_PATH="$( cd `dirname $0`/../test/fixtures/openldap && pwd )"
66
SEED_PATH="$( cd `dirname $0`/../test/fixtures && pwd )"
77

8-
DEBIAN_FRONTEND=noninteractive sudo -E apt-get install -y --force-yes slapd time ldap-utils
8+
dpkg -s slapd time ldap-utils &>/dev/null ||\
9+
DEBIAN_FRONTEND=noninteractive sudo -E apt-get install -y --force-yes slapd time ldap-utils
910

1011
sudo /etc/init.d/slapd stop
1112

0 commit comments

Comments
 (0)