diff options
author | Michał Masłowski <mtjm@mtjm.eu> | 2014-09-30 21:18:41 +0200 |
---|---|---|
committer | Michał Masłowski <mtjm@mtjm.eu> | 2014-09-30 21:18:41 +0200 |
commit | 5e9c23a6cc430138358c97544b1a9219d643b6a4 (patch) | |
tree | d6e5f226a8442ac612a0b5ba829e4243ac76f398 | |
parent | a264b078cde98c6ad3766d1bdf69ca331f01baa5 (diff) |
Fix make_repo_torrents for the new server.
-rwxr-xr-x | cron-jobs/make_repo_torrents | 3 | ||||
-rwxr-xr-x[-rw-r--r--] | make_individual_torrent | 0 |
2 files changed, 2 insertions, 1 deletions
diff --git a/cron-jobs/make_repo_torrents b/cron-jobs/make_repo_torrents index a5d72a5..fec4698 100755 --- a/cron-jobs/make_repo_torrents +++ b/cron-jobs/make_repo_torrents @@ -32,6 +32,7 @@ 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. +script_directory="$(dirname "$(readlink -e "$0")")/.." . "$(dirname "$(readlink -e "$0")")/../config" public_location="$FTP_BASE/" torrent_location="$FTP_BASE/torrents/" @@ -58,7 +59,7 @@ do # `make_individual_torrent' to make it. if ! [[ -f "${torrent_location}${pkg_name}.torrent" ]] then - /srv/http/repo/dbscripts/make_individual_torrent "${pkg}" "${public_location}" + "$script_directory/make_individual_torrent" "${pkg}" "${public_location}" fi done done diff --git a/make_individual_torrent b/make_individual_torrent index e5b7d8c..e5b7d8c 100644..100755 --- a/make_individual_torrent +++ b/make_individual_torrent |