From 43c2d280d98efa9cbba2c4ddfc0183fc967f9487 Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Sun, 28 Jul 2019 15:36:20 -0500 Subject: [PATCH] Improve key copy --- rootfs/standard/usr/bin/mynode_startup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rootfs/standard/usr/bin/mynode_startup.sh b/rootfs/standard/usr/bin/mynode_startup.sh index e0a13ed4..784bfe5a 100755 --- a/rootfs/standard/usr/bin/mynode_startup.sh +++ b/rootfs/standard/usr/bin/mynode_startup.sh @@ -79,8 +79,8 @@ if [ ! -f /home/bitcoin/.mynode/.gensshkeys ]; then fi # Sync product key (SD preferred) -cp -f /home/bitcoin/.mynode/.product_key* /mnt/hdd/mynode/settings/ -cp -f /mnt/hdd/mynode/settings/.product_key* home/bitcoin/.mynode/ +cp -f /home/bitcoin/.mynode/.product_key* /mnt/hdd/mynode/settings/ || true +cp -f /mnt/hdd/mynode/settings/.product_key* home/bitcoin/.mynode/ || true # Randomize RPC password if [ ! -f /mnt/hdd/mynode/settings/.btcrpcpw ]; then