no infile substitution
This commit is contained in:
@@ -1,6 +1,15 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source .env
|
source .env
|
||||||
envsubst < chains/chains_mainnet.json > chains/chains_mainnet.json
|
|
||||||
envsubst < chains/chains_testnet.json > chains/chains_testnet.json
|
originalfile="chains/chains_mainnet.json"
|
||||||
|
tmpfile=$(mktemp)
|
||||||
|
cp --attributes-only --preserve $originalfile $tmpfile
|
||||||
|
cat $originalfile | envsubst > $tmpfile && mv $tmpfile $originalfile
|
||||||
|
|
||||||
|
originalfile="chains/chains_testnet.json"
|
||||||
|
tmpfile=$(mktemp)
|
||||||
|
cp --attributes-only --preserve $originalfile $tmpfile
|
||||||
|
cat $originalfile | envsubst > $tmpfile && mv $tmpfile $originalfile
|
||||||
|
|
||||||
chown -R 1005:1001 chains bootstrap_skript
|
chown -R 1005:1001 chains bootstrap_skript
|
||||||
Reference in New Issue
Block a user