blob: c0587fc93f5d16d739833705e39c050a9992c151 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/sh
read INSTANCE 2>/dev/null < /usr/share/opendj/instance.loc
if [ -z "$INSTANCE" ]
then
echo "Didn't found OpenDJ instance. Verify that you've installed OpenDJ correctly."
exit 1
fi
if [ ! -f "$INSTANCE/config/config.ldif" ]
then
# No existing config! Warn user to configure OpenDJ
echo $"OpenDJ instance at \"$INSTANCE\" is not configured. Use a command like"
echo $" su opendj -s /bin/sh /usr/share/opendj/setup"
echo $"to configure it."
exit 1
fi
exit 0
|