littlelink-server/entrypoint.sh
2021-08-09 21:58:26 -05:00

7 lines
211 B
Bash
Executable File

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