Skip to content

Commit e555590

Browse files
authored
Merge pull request #1136 from DouglasNeuroInformatics/fixGatewayRunScript
change 'file doesn't exist' to 'file doesn't exist or size is <= 0'
2 parents aa5db2f + eb4ee6b commit e555590

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/gateway/scripts/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -eu
55
DATABASE_FILE=${GATEWAY_DATABASE_URL#file:}
66
EMPTY_DATABASE_FILE="/app/gateway.tmpl.db"
77

8-
if [ ! -f "$DATABASE_FILE" ]; then
8+
if [ ! -s "$DATABASE_FILE" ]; then
99
cp "$EMPTY_DATABASE_FILE" "$DATABASE_FILE"
1010
fi
1111

0 commit comments

Comments
 (0)