littlelink-server/entrypoint.sh

7 lines
204 B
Bash
Executable File

#!/bin/bash
originalfile="/usr/src/app/env.js"
tmpfile=$(mktemp)
cp --attributes-only --preserve $originalfile $tmpfile
cat $originalfile | envsubst | tee $tmpfile && mv $tmpfile $originalfile
exec "$@"