Skip to content

Commit cafd9f0

Browse files
committed
fix: non-POSIX-compliant script that worked on Alpine but causes issues on Debian (wtf!)
1 parent f863d86 commit cafd9f0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

apps/gateway/scripts/run.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
#!/bin/sh
22

3+
set -eu
4+
35
DATABASE_FILE=${GATEWAY_DATABASE_URL#file:}
46
EMPTY_DATABASE_FILE="/app/gateway.tmpl.db"
57

6-
if [[ ! -f "$DATABASE_FILE" ]]; then
8+
if [ ! -f "$DATABASE_FILE" ]; then
79
cp "$EMPTY_DATABASE_FILE" "$DATABASE_FILE"
810
fi
911

10-
node ./dist/main.js
12+
exec node ./dist/main.js

0 commit comments

Comments
 (0)