summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcron-jobs/make_repo_torrents3
-rwxr-xr-x[-rw-r--r--]make_individual_torrent0
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