projects
/
cloudstore.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
bind to IP and open scgi socket, fix schedule
[cloudstore.git]
/
torrent
/
mktorrent.sh
1
#!/bin/sh -xe
2
3
chmod 444 $1
4
5
if [ ! -e $1.torrent ] ; then
6
7
# -p prevents sharing between clients
8
mktorrent --announce http://10.60.0.240:6969/announce --announce http://10.60.0.244:6969/announce --no-date --verbose --output $1.torrent $1
9
10
fi
11
12
# start seeding
13
md5=`basename $1`
14
cd send
15
ln -sfv ../$1 .
16
cd watch
17
ln -sfv ../../$1.torrent .
18