Skip to content

Commit

Permalink
Fix Docker entrypoint not finding instance data (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
RoBobik committed Jun 1, 2023
1 parent ecd3969 commit f69c272
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 1,9 @@
#!/bin/bash -e
#!/bin/bash -eu

if [ ! -d $INSTANCE_DIR/config ]; then
# This file is created during Docker build and should always be present
INSTANCE_DIR="$(</opt/wrends/instance.loc)"

if [ ! -d "$INSTANCE_DIR/config" ]; then
source ./bootstrap/setup.sh
echo "First start..."
first_start
Expand Down

0 comments on commit f69c272

Please sign in to comment.