summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2014-09-30 21:18:41 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2014-09-30 21:18:41 +0200
commit5e9c23a6cc430138358c97544b1a9219d643b6a4 (patch)
treed6e5f226a8442ac612a0b5ba829e4243ac76f398
parenta264b078cde98c6ad3766d1bdf69ca331f01baa5 (diff)
Fix make_repo_torrents for the new server.
-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