18 lines
508 B
Bash
Executable File
18 lines
508 B
Bash
Executable File
#!/bin/bash
|
|
|
|
source .env
|
|
export DOMAIN=$RPC_DOMAIN
|
|
|
|
chown -R root:root chains bootstrap_skript
|
|
|
|
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 |