Skip to content

Commit

Permalink
Fix bash command for litestream docker-entrypoint (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtlynch authored Mar 29, 2024
1 parent 7a64cc8 commit 5509d61
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docker-entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ readonly IS_LITESTREAM_ENABLED
# Echo commands to stdout.
set -x


LP_LAUNCH_CMD="/app/logpaste $*"

if [[ "${IS_LITESTREAM_ENABLED}" == 'true' ]]; then
/app/litestream version
echo "DB_REPLICA_URL=${DB_REPLICA_URL}"
Expand All @@ -44,10 +47,10 @@ if [[ "${IS_LITESTREAM_ENABLED}" == 'true' ]]; then

# Let Litestream start LogPaste as a child process
/app/litestream replicate \
-exec /app/logpaste "$@"
-exec "${LP_LAUNCH_CMD}"
else
echo "Starting without litestream"

# Start server.
/app/logpaste "$@"
eval "exec ${LP_LAUNCH_CMD}"
fi

0 comments on commit 5509d61

Please sign in to comment.