mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-11-12 08:29:16 +00:00
Make backup of SCB on first run
This commit is contained in:
parent
9e8571248b
commit
d912709537
|
@ -10,6 +10,9 @@ while [ ! -f $LND_CHANNEL_FILE ]; do
|
|||
done
|
||||
echo "Channel backup found!"
|
||||
|
||||
# Always copy once to make first backup
|
||||
cp -f $LND_CHANNEL_FILE $LND_CHANNEL_FILE_BACKUP
|
||||
|
||||
while true; do
|
||||
# If file has been deleted, exit so we cat restart
|
||||
if [ ! -f $LND_CHANNEL_FILE ]; then
|
||||
|
|
Loading…
Reference in New Issue
Block a user