mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-12 13:49:38 +02:00
#2561 adapt node migration detection
This commit is contained in:
parent
5e853b4ef6
commit
78101faae7
@ -279,13 +279,12 @@ if [ "$1" = "status" ]; then
|
||||
# check if its another fullnode implementation data disk
|
||||
hddGotMigrationData=""
|
||||
if [ "${hddFormat}" = "ext4" ]; then
|
||||
# check for umbrel
|
||||
# check for other node implementations
|
||||
isUmbrelHDD=$(sudo ls /mnt/storage/umbrel/info.json 2>/dev/null | grep -c '.json')
|
||||
isMyNodeHDD=$(sudo ls /mnt/storage/mynode/bitcoin/bitcoin.conf 2>/dev/null | grep -c '.conf')
|
||||
if [ ${isUmbrelHDD} -gt 0 ]; then
|
||||
hddGotMigrationData="umbrel"
|
||||
fi
|
||||
isMyNodeHDD=$(sudo ls /mnt/storage/mynode/bitcoin/bitcoin.conf 2>/dev/null | grep -c '.conf')
|
||||
if [ ${isMyNodeHDD} -gt 0 ]; then
|
||||
elif [ ${isMyNodeHDD} -gt 0 ]; then
|
||||
hddGotMigrationData="mynode"
|
||||
fi
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user