Skip to content

Commit fa31e23

Browse files
Copilotvharseko
andauthored
Fix shell script issues in opendj-docker/run.sh (#640)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: vharseko <6818498+vharseko@users.noreply.github.com>
1 parent 92f8331 commit fa31e23

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • opendj-packages/opendj-docker

opendj-packages/opendj-docker/run.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ if [ ! -d ./db ]; then
2929
mkdir -p /opt/opendj/data/lib/extensions
3030
fi
3131

32-
# Instance dir does exist? We start opendj whithout detach
32+
# Instance dir does exist? We start opendj without detach
3333
if [ -d ./data/config ]; then
3434
sh ./upgrade -n
3535
exec ./bin/start-ds --nodetach
36-
return
36+
exit
3737
fi
3838

3939
# If we are here, opendj is not installed & we need to run setup
@@ -49,7 +49,7 @@ echo "Running $BOOTSTRAP"
4949
sh "${BOOTSTRAP}"
5050

5151
# Check if OPENDJ_REPLICATION_TYPE var is set. If it is - replicate to that server
52-
if [ ! -z ${MASTER_SERVER} ] && [ ! -z ${OPENDJ_REPLICATION_TYPE} ]; then
52+
if [ -n "${MASTER_SERVER}" ] && [ -n "${OPENDJ_REPLICATION_TYPE}" ]; then
5353
/opt/opendj/bootstrap/replicate.sh
5454
fi
5555

0 commit comments

Comments
 (0)