From 5fad74e56b72810c9d7f86956236ff45654fb684 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 26 Jul 2014 20:20:33 -0400 Subject: make_repo_torrents: load the location from the common config file --- cron-jobs/make_repo_torrents | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) mode change 100644 => 100755 cron-jobs/make_repo_torrents (limited to 'cron-jobs') diff --git a/cron-jobs/make_repo_torrents b/cron-jobs/make_repo_torrents old mode 100644 new mode 100755 index b5c6749..faee191 --- 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 -- cgit v1.2.3