Skip to content

Commit a74534e

Browse files
shuaiscottsolidnerd
authored andcommitted
Fixing .env overwrite issue
This fixes the .env file from being overwritten every single time the docker container is run
1 parent 323622f commit a74534e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ echoerr() { echo "$@" 1>&2; }
77
IFS=":" read -r DB_HOST_NAME DB_PORT <<< "$DB_HOST"
88
DB_PORT=${DB_PORT:-3306}
99

10-
if [ ! -f '$BOOKSTACK_HOME/.env' ]; then
10+
if [ ! -f "$BOOKSTACK_HOME/.env" ]; then
1111
if [[ "${DB_HOST}" ]]; then
1212
cat > "$BOOKSTACK_HOME/.env" <<EOF
1313
# Environment

0 commit comments

Comments
 (0)