Skip to content

Commit f225852

Browse files
Adds fallback to structr conf variable.
1 parent 68fd768 commit f225852

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

setup_environment.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ sed -i "s|STRUCTR_LICENSE|$STRUCTR_LICENSE|g" docker-compose.yml &&
88
sed -i "s|STRUCTR_VERSION|$STRUCTR_VERSION|g" docker-compose.yml &&
99
sed -i "s|STRUCTR_WEBAPP_PATH|$STRUCTR_WEBAPP_PATH|g" docker-compose.yml &&
1010

11-
if [ -z ${STRUCTR_CONF_FILE:-"./structr.conf"} ]; then
11+
if [ -z "$STRUCTR_CONF_FILE" ]; then
12+
STRUCTR_CONF_FILE="./structr.conf"
1213
touch ./structr.conf
1314
fi
1415

15-
sed -i "s|STRUCTR_CONF_FILE|$STRUCTR_CONF_FILE|g" docker-compose.yml
16+
sed -i "s|STRUCTR_CONF_FILE|$STRUCTR_CONF_FILE|g" docker-compose.yml

0 commit comments

Comments
 (0)