2022-04-27 02:32:24 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-04-29 04:07:13 +00:00
|
|
|
sleep 10s
|
|
|
|
|
|
|
|
# Set folders +x so files can be navigated by bitcoin group
|
|
|
|
chmod +x /mnt/hdd/mynode/lnd/data || true
|
|
|
|
chmod +x /mnt/hdd/mynode/lnd/data/chain || true
|
|
|
|
chmod +x /mnt/hdd/mynode/lnd/data/chain/bitcoin || true
|
|
|
|
chmod +x /mnt/hdd/mynode/lnd/data/chain/bitcoin/mainnet || true
|
|
|
|
|
|
|
|
# New files should be 640, if it already exists update it so bitcoin group can read macaroon
|
|
|
|
if [ -f /mnt/hdd/mynode/lnd/data/chain/bitcoin/mainnet/admin.macaroon ]; then
|
|
|
|
chmod 640 /mnt/hdd/mynode/lnd/data/chain/bitcoin/mainnet/admin.macaroon
|
|
|
|
fi
|
2022-04-27 02:32:24 +00:00
|
|
|
|
|
|
|
exit 0
|