mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-25 19:21:57 +02:00
try with user bitcoin
This commit is contained in:
@@ -50,10 +50,10 @@ if [ "${migrationOS}" == "raspiblitz" ]; then
|
||||
# get defaultZipPath, localIP, etc
|
||||
source <(sudo /home/admin/config.scripts/blitz.migration.sh status)
|
||||
|
||||
# make sure that temp directory exists, is clear and can be written by admin
|
||||
# make sure that temp directory exists, is clear and can be written by user bitcoin
|
||||
sudo mkdir -p ${defaultZipPath} 2>/dev/null
|
||||
sudo rm /mnt/hdd/temp/migration/*
|
||||
sudo chown -R admin:admin ${defaultZipPath}
|
||||
sudo rm /mnt/hdd/temp/migration/* 2>/dev/null
|
||||
sudo chown -R bitcoin:bitcoin ${defaultZipPath} 2>/dev/null
|
||||
|
||||
# scp upload info
|
||||
clear
|
||||
@@ -67,7 +67,7 @@ if [ "${migrationOS}" == "raspiblitz" ]; then
|
||||
echo "ON YOUR LAPTOP open a new terminal and change into"
|
||||
echo "the directory where your migration file is and"
|
||||
echo "COPY, PASTE AND EXECUTE THE FOLLOWING COMMAND:"
|
||||
echo "scp -r ./raspiblitz-*.tar.gz admin@${localip}:${defaultZipPath}"
|
||||
echo "scp -r ./raspiblitz-*.tar.gz bitcoin@${localip}:${defaultZipPath}"
|
||||
echo ""
|
||||
echo "Use password 'raspiblitz' to authenticate file transfer."
|
||||
echo "PRESS ENTER when upload is done."
|
||||
|
Reference in New Issue
Block a user