add bash to command

This commit is contained in:
rootzoll 2018-09-06 17:37:17 +02:00
parent fb9779d52d
commit afd49243e7

View File

@ -25,7 +25,7 @@ name="torrent"
targetDir="/mnt/hdd/torrent"
targetSize=$size
maxTimeoutLoops=100000
command="sudo lftp -c \"torrent -O ${targetDir} /home/admin/assets/${torrent}.torrent; bye\""
command="bash -c 'sudo lftp -c \"torrent -O ${targetDir} /home/admin/assets/${torrent}.torrent; bye\"'"
# starting session if needed
echo "checking if ${name} has a running screen session"