Skip to content

Commit c3b70f0

Browse files
committed
Export DB_CONNECTION if not set so it's available to app
1 parent 58c8407 commit c3b70f0

File tree

1 file changed

+2
-0
lines changed
  • root/etc/s6-overlay/s6-rc.d/init-speedtest-tracker-config

1 file changed

+2
-0
lines changed

root/etc/s6-overlay/s6-rc.d/init-speedtest-tracker-config/run

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ if [[ "${DB_CONNECTION:=sqlite}" = "sqlite" ]]; then
2020
fi
2121
lsiown abc:abc /app/www/database/database.sqlite
2222
fi
23+
export DB_CONNECTION=sqlite
24+
echo "sqlite" > /run/s6/container_environment/DB_CONNECTION
2325
elif [[ "${DB_CONNECTION}" = "mysql" ]]; then
2426
echo "Waiting for DB to be available"
2527
END=$((SECONDS + 30))

0 commit comments

Comments
 (0)