mirror of
https://github.com/techno-tim/littlelink-server.git
synced 2024-11-22 05:25:13 +01:00
7 lines
211 B
Bash
Executable File
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 "$@"
|