Browse Source

make all temp files readable

dev
rootzoll 6 years ago
parent
commit
59b2967a2f
  1. 1
      home.admin/config.scripts/lnd.export.sh

1
home.admin/config.scripts/lnd.export.sh

@ -74,6 +74,7 @@ elif [ ${exportType} = "http" ]; then
sudo cp /home/bitcoin/.lnd/data/chain/${network}/${chain}net/readonly.macaroon ./${randomFolderName}/readonly.macaroon
sudo cp /home/bitcoin/.lnd/tls.cert ./${randomFolderName}/tls.cert
cd ${randomFolderName}
sudo chmod 444 *.*
sudo ufw allow from 192.168.0.0/16 to any port ${randomPortNumber} comment 'temp http server'
python -m SimpleHTTPServer ${randomPortNumber}
sudo ufw delete allow from 192.168.0.0/16 to any port ${randomPortNumber} comment 'temp http server'

Loading…
Cancel
Save