|
@ -74,9 +74,9 @@ elif [ ${exportType} = "http" ]; then |
|
|
sudo cp /home/bitcoin/.lnd/data/chain/${network}/${chain}net/readonly.macaroon ./${randomFolderName}/readonly.macaroon |
|
|
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 |
|
|
sudo cp /home/bitcoin/.lnd/tls.cert ./${randomFolderName}/tls.cert |
|
|
cd ${randomFolderName} |
|
|
cd ${randomFolderName} |
|
|
sudo ufw allow from 192.168.0.0/24 to any port ${randomPortNumber} comment 'temp http server' |
|
|
sudo ufw allow from 192.168.0.0/16 to any port ${randomPortNumber} comment 'temp http server' |
|
|
python -m SimpleHTTPServer ${randomPortNumber} |
|
|
python -m SimpleHTTPServer ${randomPortNumber} |
|
|
sudo ufw delete allow from 192.168.0.0/24 to any port ${randomPortNumber} comment 'temp http server' |
|
|
sudo ufw delete allow from 192.168.0.0/16 to any port ${randomPortNumber} comment 'temp http server' |
|
|
cd .. |
|
|
cd .. |
|
|
sudo rm -r ${randomFolderName} |
|
|
sudo rm -r ${randomFolderName} |
|
|
echo "OK - temp HTTP server is stopped." |
|
|
echo "OK - temp HTTP server is stopped." |
|
|