#2561 adapt node migration detection

This commit is contained in:
rootzoll
2021-10-07 11:50:25 +02:00
parent 5e853b4ef6
commit 78101faae7

View File

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