mirror of
https://github.com/mempool/mempool.git
synced 2025-02-22 22:25:34 +01:00
Use a single command to find the config path
This commit is contained in:
parent
670f85b1f5
commit
5bfc8a9d58
1 changed files with 3 additions and 12 deletions
|
@ -53,17 +53,8 @@ export __BISQ_WEBSITE_URL__
|
|||
export __MINING_DASHBOARD__
|
||||
export __LIGHTNING__
|
||||
|
||||
# This is not an array right now but that might change in the future
|
||||
files=()
|
||||
while IFS= read -r -d $'\0'; do
|
||||
files+=("$REPLY")
|
||||
done < <(find /var/www/mempool -name "config.js" -print0)
|
||||
|
||||
for file in "${files[@]}"
|
||||
do
|
||||
folder=$(dirname ${file})
|
||||
echo ${folder}
|
||||
envsubst < ${folder}/config.template.js > ${folder}/config.js
|
||||
done
|
||||
folder=$(find /var/www/mempool -name "config.js" | xargs dirname)
|
||||
echo ${folder}
|
||||
envsubst < ${folder}/config.template.js > ${folder}/config.js
|
||||
|
||||
exec "$@"
|
||||
|
|
Loading…
Add table
Reference in a new issue