mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-25 11:13:12 +02:00
adapt migration to new setup process
This commit is contained in:
@@ -104,12 +104,6 @@ if [ "$1" = "migration-umbrel" ]; then
|
|||||||
|
|
||||||
source <(sudo /home/admin/config.scripts/blitz.datadrive.sh status)
|
source <(sudo /home/admin/config.scripts/blitz.datadrive.sh status)
|
||||||
|
|
||||||
# can olny migrate unmonted data disks
|
|
||||||
if [ "${isMounted}" == "1" ]; then
|
|
||||||
echo "err='cannot migrate mounted drive'"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# check if the HDD is an umbrel data disk
|
# check if the HDD is an umbrel data disk
|
||||||
if [ "${hddGotMigrationData}" == "umbrel" ]; then
|
if [ "${hddGotMigrationData}" == "umbrel" ]; then
|
||||||
echo "# found UMBREL data disk at ${hddPartitionCandidate}"
|
echo "# found UMBREL data disk at ${hddPartitionCandidate}"
|
||||||
@@ -118,8 +112,10 @@ if [ "$1" = "migration-umbrel" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# temp mount the data drive
|
# make sure data drive is mounted
|
||||||
source <(sudo /home/admin/config.scripts/blitz.datadrive.sh tempmount ${hddPartitionCandidate})
|
if [ "${isMounted}" != "1" ]; then
|
||||||
|
source <(sudo /home/admin/config.scripts/blitz.datadrive.sh tempmount ${hddPartitionCandidate})
|
||||||
|
fi
|
||||||
if [ "${isMounted}" == "1" ]; then
|
if [ "${isMounted}" == "1" ]; then
|
||||||
echo "# mounted ${hddPartitionCandidate} to /mnt/hdd"
|
echo "# mounted ${hddPartitionCandidate} to /mnt/hdd"
|
||||||
else
|
else
|
||||||
@@ -198,12 +194,6 @@ if [ "$1" = "migration-mynode" ]; then
|
|||||||
|
|
||||||
source <(sudo /home/admin/config.scripts/blitz.datadrive.sh status)
|
source <(sudo /home/admin/config.scripts/blitz.datadrive.sh status)
|
||||||
|
|
||||||
# can olny migrate unmonted data disks
|
|
||||||
if [ "${isMounted}" == "1" ]; then
|
|
||||||
echo "err='cannot migrate mounted drive'"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# check if the HDD is an umbrel data disk
|
# check if the HDD is an umbrel data disk
|
||||||
if [ "${hddGotMigrationData}" == "mynode" ]; then
|
if [ "${hddGotMigrationData}" == "mynode" ]; then
|
||||||
echo "# found MYNODE data disk at ${hddPartitionCandidate}"
|
echo "# found MYNODE data disk at ${hddPartitionCandidate}"
|
||||||
@@ -212,8 +202,10 @@ if [ "$1" = "migration-mynode" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# temp mount the data drive
|
# make sure data drive is mounted
|
||||||
source <(sudo /home/admin/config.scripts/blitz.datadrive.sh tempmount ${hddPartitionCandidate})
|
if [ "${isMounted}" != "1" ]; then
|
||||||
|
source <(sudo /home/admin/config.scripts/blitz.datadrive.sh tempmount ${hddPartitionCandidate})
|
||||||
|
fi
|
||||||
if [ "${isMounted}" == "1" ]; then
|
if [ "${isMounted}" == "1" ]; then
|
||||||
echo "# mounted ${hddPartitionCandidate} to /mnt/hdd"
|
echo "# mounted ${hddPartitionCandidate} to /mnt/hdd"
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user