mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-11-15 09:59:16 +00:00
16 lines
552 B
Bash
Executable File
16 lines
552 B
Bash
Executable File
#!/bin/bash
|
|
|
|
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
|
|
|
|
exit 0 |