try with user bitcoin

This commit is contained in:
rootzoll
2021-05-01 02:07:40 +02:00
parent 4a80e9d44c
commit ddd3e952cf

View File

@@ -50,10 +50,10 @@ if [ "${migrationOS}" == "raspiblitz" ]; then
# get defaultZipPath, localIP, etc # get defaultZipPath, localIP, etc
source <(sudo /home/admin/config.scripts/blitz.migration.sh status) 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 mkdir -p ${defaultZipPath} 2>/dev/null
sudo rm /mnt/hdd/temp/migration/* sudo rm /mnt/hdd/temp/migration/* 2>/dev/null
sudo chown -R admin:admin ${defaultZipPath} sudo chown -R bitcoin:bitcoin ${defaultZipPath} 2>/dev/null
# scp upload info # scp upload info
clear clear
@@ -67,7 +67,7 @@ if [ "${migrationOS}" == "raspiblitz" ]; then
echo "ON YOUR LAPTOP open a new terminal and change into" echo "ON YOUR LAPTOP open a new terminal and change into"
echo "the directory where your migration file is and" echo "the directory where your migration file is and"
echo "COPY, PASTE AND EXECUTE THE FOLLOWING COMMAND:" 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 ""
echo "Use password 'raspiblitz' to authenticate file transfer." echo "Use password 'raspiblitz' to authenticate file transfer."
echo "PRESS ENTER when upload is done." echo "PRESS ENTER when upload is done."