summaryrefslogtreecommitdiff
path: root/db-sync
diff options
context:
space:
mode:
Diffstat (limited to 'db-sync')
-rwxr-xr-xdb-sync12
1 files changed, 6 insertions, 6 deletions
diff --git a/db-sync b/db-sync
index 5264296..f97718d 100755
--- a/db-sync
+++ b/db-sync
@@ -117,7 +117,7 @@ init() {
--include-from="/tmp/${_repo}-${_arch}.whitelist" \
--exclude="*" \
"rsync://${mirror}/${mirrorpath}/${_repo}/os/${_arch}/" \
- "${FTP_BASE}/${_repo}/os/${_arch}/"
+ "${root_dir}/${_repo}/os/${_arch}/"
# Add a new whitelist
whitelists+=(/tmp/${_repo}-${_arch}.whitelist)
@@ -127,7 +127,7 @@ init() {
--delay-updates \
--safe-links \
"${WORKDIR}/${_repo}/os/${_arch}/" \
- "${FTP_BASE}/${_repo}/os/${_arch}/"
+ "${root_dir}/${_repo}/os/${_arch}/"
# Cleanup
unset db
@@ -152,7 +152,7 @@ init() {
--include-from=/tmp/any.whitelist \
--exclude="*" \
"rsync://${mirror}/${mirrorpath}/${pkgpool}/" \
- "${FTP_BASE}/${pkgpool}/"
+ "${root_dir}/${pkgpool}/"
done
# Sync sources
@@ -171,10 +171,10 @@ init() {
--include-from=/tmp/any.whitelist \
--exclude="*" \
"rsync://${mirror}/${mirrorpath}/${srcpool}/" \
- "${FTP_BASE}/${srcpool}/"
+ "${root_dir}/${srcpool}/"
done
- date -u +%s > "${FTP_BASE}/lastsync"
+ date -u +%s > "${root_dir}/lastsync"
# Cleanup
unset blacklist whitelists _arch _repo repo_file
@@ -192,7 +192,7 @@ source "$(dirname "$(readlink -e "$0")")/config"
source "$(dirname "$(readlink -e "$0")")/db-libremessages"
# Check variables presence
-for var in DBEXT FILESEXT mirror mirrorpath WORKDIR BLACKLIST_FILE FTP_BASE ARCHSRCPOOLS ARCHPKGPOOLS; do
+for var in DBEXT FILESEXT mirror mirrorpath WORKDIR BLACKLIST_FILE root_dir ARCHSRCPOOLS ARCHPKGPOOLS; do
test -z "${!var}" && fatal_error "Empty %s" "${var}"
done