#3807 fix cln jrpc socket access (#3815)

This commit is contained in:
/rootzoll 2023-05-09 23:10:28 +02:00 committed by GitHub
parent 2519cc8708
commit d7599c21ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -123,6 +123,10 @@ if [ "$1" = "update-config" ]; then
# configure CL
elif [ "${lightning}" == "cl" ]; then
# make sure socket can be accessed by blitzapi
echo "# Access Rights Web API Lightning --> CL SOCKET: /mnt/hdd/app-data/.lightning/bitcoin/lightning-rpc"
sudo chmod 770 /mnt/hdd/app-data/.lightning/bitcoin/lightning-rpc
echo "# CONFIG Web API Lightning --> CL"
sed -i "s/^ln_node=.*/ln_node=cln_jrpc/g" ./.env
sed -i "s#^cln_jrpc_path=.*#cln_jrpc_path=\"/mnt/hdd/app-data/.lightning/bitcoin/lightning-rpc\"#g" ./.env