Skip to content

Commit af39c0c

Browse files
committed
Fail on error, adjust base path computation
1 parent 6058337 commit af39c0c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

script/install-openldap

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
#!/usr/bin/env sh
2+
set -e
3+
set -x
24

35
echo "OpenLDAP installer stub"
46

57
DEBIAN_FRONTEND=noninteractive sudo -E apt-get install -y --force-yes slapd time ldap-utils
68

7-
BASE_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd ../test/fixtures/openldap && pwd )"
9+
BASE_PATH="$( cd `dirname $0`/../test/fixtures/openldap && pwd )"
10+
11+
sudo /etc/init.d/slapd stop
812

913
# setup base configuration, schemas
1014
sudo slapadd -F /etc/ldap/slapd.d -b "cn=config" -l $BASE_PATH/slapd.conf.ldif

0 commit comments

Comments
 (0)