From 59b2967a2f55082ed12f63d316124ddf7c520481 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Tue, 15 Jan 2019 20:50:40 +0100 Subject: [PATCH] make all temp files readable --- home.admin/config.scripts/lnd.export.sh | 1 + 1 file changed, 1 insertion(+) 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'