mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-22 16:10:55 +02:00
#2561 adapt node migration detection
This commit is contained in:
@@ -279,13 +279,12 @@ if [ "$1" = "status" ]; then
|
|||||||
# check if its another fullnode implementation data disk
|
# check if its another fullnode implementation data disk
|
||||||
hddGotMigrationData=""
|
hddGotMigrationData=""
|
||||||
if [ "${hddFormat}" = "ext4" ]; then
|
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')
|
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
|
if [ ${isUmbrelHDD} -gt 0 ]; then
|
||||||
hddGotMigrationData="umbrel"
|
hddGotMigrationData="umbrel"
|
||||||
fi
|
elif [ ${isMyNodeHDD} -gt 0 ]; then
|
||||||
isMyNodeHDD=$(sudo ls /mnt/storage/mynode/bitcoin/bitcoin.conf 2>/dev/null | grep -c '.conf')
|
|
||||||
if [ ${isMyNodeHDD} -gt 0 ]; then
|
|
||||||
hddGotMigrationData="mynode"
|
hddGotMigrationData="mynode"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user