From 6884beee92cc9588576ac320ca9025ad48dfb649 Mon Sep 17 00:00:00 2001 From: Christian Rotzoll Date: Sat, 13 Apr 2019 10:50:57 +0100 Subject: [PATCH] status torrent --- home.admin/00infoBlitz.sh | 2 +- home.admin/00settingsMenuServices.sh | 2 +- home.admin/50torrentHDD.sh | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/home.admin/00infoBlitz.sh b/home.admin/00infoBlitz.sh index 32ab969..1403456 100755 --- a/home.admin/00infoBlitz.sh +++ b/home.admin/00infoBlitz.sh @@ -273,7 +273,7 @@ fi # STATUS SINALING: Backup Torrent Seeding torrentBaseStatus="•" torrentUpdateStatus="•" -source <(sudo /home/admin/50torrentHDD.sh backup-torrent-hosting-status) +source <(sudo -u admin /home/admin/50torrentHDD.sh status) if [ "${baseComplete}" == "1" ]; then torrentBaseStatus="↑" elif [ "${baseSeeding}" == "1" ]; then diff --git a/home.admin/00settingsMenuServices.sh b/home.admin/00settingsMenuServices.sh index 94396bf..44d04e8 100644 --- a/home.admin/00settingsMenuServices.sh +++ b/home.admin/00settingsMenuServices.sh @@ -237,7 +237,7 @@ RaspiBlitz can be slow. else echo "Stopping Torrents and Cleaning Up ..." - /home/admin/50torrentHDD.sh backup-torrent-hosting-cleanup + /home/admin/50torrentHDD.sh cleanup echo "BACKUP TORRENT SEEDING IS NOW OFF" needsReboot=1 fi diff --git a/home.admin/50torrentHDD.sh b/home.admin/50torrentHDD.sh index 465fcca..0a92175 100755 --- a/home.admin/50torrentHDD.sh +++ b/home.admin/50torrentHDD.sh @@ -6,10 +6,10 @@ # to just kick of the torrent downloads in the background during # regular RaspiBlitz running. So you support torrent hosting and have a blockchain backup ready just in case. -# backup-torrent-hosting-cleanup +# cleanup # to stop background torrents and clean up -# backup-torrent-hosting-status +# status # to get info backround torrent hosting ## get basic info @@ -40,7 +40,7 @@ targetDir="/mnt/hdd/torrent" sessionDir="/home/admin/.rtorrent.session" # BACKUP TORRENT SEEDING -if [ "$1" == "backup-torrent-hosting-cleanup" ]; then +if [ "$1" == "cleanup" ]; then echo "Stopping Torrents ..." sessionPID=$(screen -ls | grep "blockchain" | cut -d "." -f1 | xargs) if [ ${#sessionPID} -gt 0 ]; then @@ -58,7 +58,7 @@ if [ "$1" == "backup-torrent-hosting-cleanup" ]; then echo "DONE" exit fi -if [ "$1" == "backup-torrent-hosting-status" ]; then +if [ "$1" == "status" ]; then echo "# BASE TORRENT - for details call:" echo "# screen -S blockchain -X hardcopy .temp.out && cat ./.temp.out && rm ./.temp.out" sessionPID=$(screen -ls | grep "blockchain" | cut -d "." -f1 | xargs)