Improve key copy

This commit is contained in:
Taylor Helsper 2019-07-28 15:36:20 -05:00
parent 59d95738f8
commit 43c2d280d9

View File

@ -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