summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2014-07-26 20:20:33 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2014-07-26 20:20:33 -0400
commit5fad74e56b72810c9d7f86956236ff45654fb684 (patch)
treeeee602e61ae8e3221464170bc104c67e1b810c49
parent94b147e0f0d55b2fb22dfea57c5f37c0988908d1 (diff)
make_repo_torrents: load the location from the common config file
-rwxr-xr-x[-rw-r--r--]cron-jobs/make_repo_torrents5
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