mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-11-14 09:29:15 +00:00
10 lines
271 B
Bash
Executable File
10 lines
271 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Make sure we have wallet pw
|
|
mkdir -p /mnt/hdd/mynode/settings
|
|
if [ ! -f /mnt/hdd/mynode/settings/.lndpw ]; then
|
|
< /dev/urandom tr -dc A-Za-z0-9 | head -c${1:-24} > /mnt/hdd/mynode/settings/.lndpw
|
|
chmod 600 /mnt/hdd/mynode/settings/.lndpw
|
|
fi
|
|
|
|
exit 0 |