diff --git a/home.admin/config.scripts/lnd.export.sh b/home.admin/config.scripts/lnd.export.sh index 4892006..5cad7ef 100644 --- a/home.admin/config.scripts/lnd.export.sh +++ b/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'