summaryrefslogtreecommitdiff
path: root/db-sync
diff options
context:
space:
mode:
Diffstat (limited to 'db-sync')
-rwxr-xr-xdb-sync10
1 files changed, 5 insertions, 5 deletions
diff --git a/db-sync b/db-sync
index 9b87d50..a8ef950 100755
--- a/db-sync
+++ b/db-sync
@@ -32,7 +32,7 @@ get_repos() {
--include="*${files_extension_suffixfile}" \
--exclude="*" \
--delete-after \
- "rsync://${mirror}/${mirror_path}/" "${work_directory}"
+ "rsync://${sync_domain}/${sync_domain_path}/" "${work_directory}"
}
get_repo_content() {
@@ -116,7 +116,7 @@ init() {
--delay-updates \
--include-from="/tmp/${_repo}-${_arch}.whitelist" \
--exclude="*" \
- "rsync://${mirror}/${mirror_path}/${_repo}/os/${_arch}/" \
+ "rsync://${sync_domain}/${sync_domain_path}/${_repo}/os/${_arch}/" \
"${root_dir}/${_repo}/os/${_arch}/"
# Add a new whitelist
@@ -151,7 +151,7 @@ init() {
--safe-links \
--include-from=/tmp/any.whitelist \
--exclude="*" \
- "rsync://${mirror}/${mirror_path}/${pkgpool}/" \
+ "rsync://${sync_domain}/${sync_domain_path}/${pkgpool}/" \
"${root_dir}/${pkgpool}/"
done
@@ -170,7 +170,7 @@ init() {
--safe-links \
--include-from=/tmp/any.whitelist \
--exclude="*" \
- "rsync://${mirror}/${mirror_path}/${srcpool}/" \
+ "rsync://${sync_domain}/${sync_domain_path}/${srcpool}/" \
"${root_dir}/${srcpool}/"
done
@@ -192,7 +192,7 @@ source "$(dirname "$(readlink -e "$0")")/etc/dbscripts.cfg"
source "$(dirname "$(readlink -e "$0")")/share/db-libremessages"
# Check variables presence
-for var in database_extension_suffixfile files_extension_suffixfile mirror mirror_path work_directory blacklist_file root_dir derivative_sources_pools derivative_packages_pools; do
+for var in database_extension_suffixfile files_extension_suffixfile sync_domain sync_domain_path work_directory blacklist_file root_dir derivative_sources_pools derivative_packages_pools; do
test -z "${!var}" && fatal_error "Empty %s" "${var}"
done