mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-11 21:29:29 +02:00
Merge branch 'dev' of https://github.com/rootzoll/raspiblitz into dev
This commit is contained in:
commit
85e3eec3de
@ -150,14 +150,14 @@ function configRTL() {
|
||||
# prepare RTL-Config.json file
|
||||
echo "# ${netprefix}RTL/RTL.conf"
|
||||
# change of config: https://github.com/Ride-The-Lightning/RTL/tree/v0.6.4
|
||||
sudo cp /home/rtl/RTL/sample-RTL-Config.json /home/admin/RTL-Config.json
|
||||
sudo cp /home/rtl/RTL/docs/Sample-RTL-Config.json /home/admin/RTL-Config.json
|
||||
sudo chown admin:admin /home/admin/RTL-Config.json
|
||||
sudo chmod 600 /home/admin/RTL-Config.json || exit 1
|
||||
PASSWORD_B=$(sudo cat /mnt/hdd/${network}/${network}.conf | grep rpcpassword | cut -c 13-)
|
||||
# modify sample-RTL-Config.json and save in RTL-Config.json
|
||||
node > /home/admin/RTL-Config.json <<EOF
|
||||
//Read data
|
||||
var data = require('/home/rtl/RTL/sample-RTL-Config.json');
|
||||
var data = require('/home/rtl/RTL/docs/Sample-RTL-Config.json');
|
||||
//Manipulate data
|
||||
data.port = '$RTLHTTP'
|
||||
data.nodes[0].lnNode = '$hostname'
|
||||
|
Loading…
x
Reference in New Issue
Block a user