Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 23 lines (17 sloc) 612 Bytes
# Path of the temporary repository where people upload their torrents file
# Be sure mldonkey will be able to process files
chown -R mldonkey:root $P
# Get the list of all files in the repository
files=`ls $P`
# Send each file to mldonkey
for torrent_name in $files; do
# TODO: do url encoding here
wget -q -O /dev/null "http://localhost:4080/submit?q=dllink+$tor"
# TODO: do not remove if mldonkey doesn't accept the torrent
rm -f $tor
# Let everybody upload new torrent files to the repository
chmod -R 666 $P
Something went wrong with that request. Please try again.