We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aa5db2f + eb4ee6b commit e555590Copy full SHA for e555590
apps/gateway/scripts/run.sh
@@ -5,7 +5,7 @@ set -eu
5
DATABASE_FILE=${GATEWAY_DATABASE_URL#file:}
6
EMPTY_DATABASE_FILE="/app/gateway.tmpl.db"
7
8
-if [ ! -f "$DATABASE_FILE" ]; then
+if [ ! -s "$DATABASE_FILE" ]; then
9
cp "$EMPTY_DATABASE_FILE" "$DATABASE_FILE"
10
fi
11
0 commit comments