Browse Source

fix torrent after install

master
Christian Rotzoll 6 years ago
parent
commit
bad94b8daa
  1. 22
      home.admin/00infoBlitz.sh
  2. 2
      home.admin/50torrentHDD.sh

22
home.admin/00infoBlitz.sh

@ -273,16 +273,18 @@ fi
# STATUS SINALING: Backup Torrent Seeding # STATUS SINALING: Backup Torrent Seeding
torrentBaseStatus="•" torrentBaseStatus="•"
torrentUpdateStatus="•" torrentUpdateStatus="•"
source <(sudo -u admin /home/admin/50torrentHDD.sh status) if [ "${backupTorrentSeeding}" == "on" ]; then
if [ "${baseComplete}" == "1" ]; then source <(sudo -u admin /home/admin/50torrentHDD.sh status)
torrentBaseStatus="↑" if [ "${baseComplete}" == "1" ]; then
elif [ "${baseSeeding}" == "1" ]; then torrentBaseStatus="↑"
torrentBaseStatus="↓" elif [ "${baseSeeding}" == "1" ]; then
fi torrentBaseStatus="↓"
if [ "${updateComplete}" == "1" ]; then fi
torrentUpdateStatus="↑" if [ "${updateComplete}" == "1" ]; then
elif [ "${updateSeeding}" == "1" ]; then torrentUpdateStatus="↑"
torrentUpdateStatus="↓" elif [ "${updateSeeding}" == "1" ]; then
torrentUpdateStatus="↓"
fi
fi fi
sleep 5 sleep 5

2
home.admin/50torrentHDD.sh

@ -367,8 +367,8 @@ date +%s
echo "can take 10-60 minutes... please wait" echo "can take 10-60 minutes... please wait"
sudo mkdir /mnt/hdd/${network} 2>/dev/null sudo mkdir /mnt/hdd/${network} 2>/dev/null
sudo mv ${targetPath1}/* /mnt/hdd/${network}/ sudo mv ${targetPath1}/* /mnt/hdd/${network}/
sudo rm -r ${sessionDir}/blockchain
sudo cp --verbose -r ${targetPath2}/* /mnt/hdd/${network}/ sudo cp --verbose -r ${targetPath2}/* /mnt/hdd/${network}/
sudo rm -r ${targetDir}
echo "OK" echo "OK"
date +%s date +%s

Loading…
Cancel
Save