summaryrefslogtreecommitdiff
path: root/parabola-mirror-repos
diff options
context:
space:
mode:
authorEsteban Carnevale <alfplayer@mailoo.org>2014-11-07 13:50:31 -0300
committerEsteban Carnevale <alfplayer@mailoo.org>2014-11-07 13:50:31 -0300
commit93d31cda4022574685a015d737e5cae341b40509 (patch)
tree93cde00ee01f7d4012b23d77b8fadd40b9a2d889 /parabola-mirror-repos
parent72a72725624fbc8ab1c2cab5e39b3bc9bc031a32 (diff)
parabola-mirror-repos: Variable name to lowercase
Diffstat (limited to 'parabola-mirror-repos')
-rwxr-xr-xparabola-mirror-repos20
1 files changed, 10 insertions, 10 deletions
diff --git a/parabola-mirror-repos b/parabola-mirror-repos
index ae0c41f..10835b6 100755
--- a/parabola-mirror-repos
+++ b/parabola-mirror-repos
@@ -17,9 +17,9 @@ log_tmp="$(mktemp -p /var/tmp)"
# They can be overridden by setting the variables in the calling environment.
# 1 to set, 0 to unset
: ${project:=parabola}
-#: ${SERVER:=rsync://repo.parabola.nu:875/repos}
-: ${SERVER:=rsync://alfplayer.com/repos/parabola} # remote rsync directory
-#: ${SERVER:=rsync://parabolagnulinux.mirrors.linux.ro/parabolagnulinux}
+#: ${server:=rsync://repo.parabola.nu:875/repos}
+: ${server:=rsync://alfplayer.com/repos/parabola} # remote rsync directory
+#: ${server:=rsync://parabolagnulinux.mirrors.linux.ro/parabolagnulinux}
: ${base_dir:=/srv/http}
: ${local_dir:=${base_dir}/${project}} # symlink to the last snapshot
: ${repos:=core extra community multilib libre kernels libre-multilib libre-multilib-testing libre-testing nonprism nonprism-testing java cross pcr}
@@ -57,8 +57,8 @@ export TZ
if [[ ${alternative_mirror} == 1 ]] ; then
no_snapshot_delete=1
leave_tmp=1
- #SERVER="rsync://repo.parabola.nu:875/repos"
- SERVER="rsync://parabolagnulinux.mirrors.linux.ro/parabolagnulinux"
+ #server="rsync://repo.parabola.nu:875/repos"
+ server="rsync://parabolagnulinux.mirrors.linux.ro/parabolagnulinux"
local_dir="${base_dir}/${project}.secondary_mirror"
#link_dest=("${base_dir}/archlinux" "${base_dir}/parabola.tmp")
link_dest+=("${base_dir}/${project}.tmp")
@@ -282,7 +282,7 @@ if [[ ${db_and_symlinks_update} == 1 ]] ; then
# Delete temporary files that may be left over by a previous invocation of parabola-mirror-repos
rm -f "$remote_pool_files" "$local_pool_files" "$POOL_FILES_TO_DELETE" || true
- remote_repo_dirs="${repos_array[@]/#/${SERVER}/}"
+ remote_repo_dirs="${repos_array[@]/#/${server}/}"
remote_repo_dirs="${remote_repo_dirs[@]/%//os}"
echo "=> Getting pool path list"
@@ -336,7 +336,7 @@ if [[ ${db_and_symlinks_update} == 1 ]] ; then
echo "=> Starting to synchronize repository directories (symlinks and db.* files)"
-rsync $OPTIONS --stats --exclude 'mips64el' --delete-after --safe-links "${link_dest_option[@]}" --link-dest="$local_dir" "${repos_array[@]/#/${SERVER}/}" "$local_dir".tmp || error " => ERROR: rsync terminated with an error code: $?"
+rsync $OPTIONS --stats --exclude 'mips64el' --delete-after --safe-links "${link_dest_option[@]}" --link-dest="$local_dir" "${repos_array[@]/#/${server}/}" "$local_dir".tmp || error " => ERROR: rsync terminated with an error code: $?"
fi
@@ -344,7 +344,7 @@ fi
if [[ ${pools_update} == 1 ]] ; then
-echo "=> Starting to synchronize package pools from remote server $SERVER"
+echo "=> Starting to synchronize package pools from remote server $server"
fi # end "if [[ ${pools_update} == 1 ]]"
@@ -354,13 +354,13 @@ _wait_log_tmp
if [[ ${pools_update} == 1 ]] ; then
- rsync $OPTIONS --stats --exclude '*-mips64el.pkg.tar.*' --safe-links --files-from="$remote_pool_files" "${link_dest_option[@]}" --link-dest="$local_dir" $SERVER "${local_dir}".tmp
+ rsync $OPTIONS --stats --exclude '*-mips64el.pkg.tar.*' --safe-links --files-from="$remote_pool_files" "${link_dest_option[@]}" --link-dest="$local_dir" $server "${local_dir}".tmp
fi # end "if [[ ${pools_update} == 1 ]]"
if [[ ${path_list} ]] ; then
echo "=> Synchronizing extra paths"
- rsync $OPTIONS --stats --safe-links "${link_dest_option[@]/%//$path}" --link-dest="$local_dir"/"$path" ${path_list_array[@]/#/${SERVER}/} "${local_dir}".tmp/ || error " => ERROR: rsync terminated with an error code: $?"
+ rsync $OPTIONS --stats --safe-links "${link_dest_option[@]/%//$path}" --link-dest="$local_dir"/"$path" ${path_list_array[@]/#/${server}/} "${local_dir}".tmp/ || error " => ERROR: rsync terminated with an error code: $?"
fi
{