diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-07-26 20:20:33 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-07-26 20:20:33 -0400 |
commit | 5fad74e56b72810c9d7f86956236ff45654fb684 (patch) | |
tree | eee602e61ae8e3221464170bc104c67e1b810c49 /cron-jobs/make_repo_torrents | |
parent | 94b147e0f0d55b2fb22dfea57c5f37c0988908d1 (diff) |
make_repo_torrents: load the location from the common config file
Diffstat (limited to 'cron-jobs/make_repo_torrents')
-rwxr-xr-x[-rw-r--r--] | cron-jobs/make_repo_torrents | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cron-jobs/make_repo_torrents b/cron-jobs/make_repo_torrents index b5c6749..faee191 100644..100755 --- a/cron-jobs/make_repo_torrents +++ b/cron-jobs/make_repo_torrents @@ -31,8 +31,9 @@ esac # pacman doesn't support multiple different packages of the same name, # so it's OK to just stuff all the torrents into a single directory. -torrent_location='/srv/http/repo/public/torrents/' -public_location='/srv/http/repo/public/' +. "$(dirname "$(readlink -e "$0")")/../config" +public_location="$FTP_BASE/" +torrent_location="$FTP_BASE/torrents/" # Tracker announce URLs, comma seperated tracker='http://t67.eu:6969/announce,http://tracker.hackcoop.com.ar/announce' # t67.eu is run by Xylon |