From 047287e464453b19c46d788ad8911398ec82e605 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Thu, 10 Nov 2022 03:33:47 -0700 Subject: [PATCH] reduce errors on syncs --- sync/common_8 | 2 -- sync/minor-release-sync-to-staging.sh | 24 ++++++++++++------------ 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/sync/common_8 b/sync/common_8 index d7a96fb..b19fd68 100644 --- a/sync/common_8 +++ b/sync/common_8 @@ -51,10 +51,8 @@ ALL_REPOS=( NONSIG_COMPOSE=( Rocky - Extras Rocky-devel Plus - rockyrpi ) declare -A SIG_COMPOSE diff --git a/sync/minor-release-sync-to-staging.sh b/sync/minor-release-sync-to-staging.sh index d21f921..0996790 100644 --- a/sync/minor-release-sync-to-staging.sh +++ b/sync/minor-release-sync-to-staging.sh @@ -28,18 +28,18 @@ done # sync all sig stuff # Only enabled for giving preferential treatment. -for SIG in "${!SIG_COMPOSE[@]}"; do - echo "${SIG}: Syncing" - cd "/mnt/compose/${MAJ}/latest-${SIG}-${MAJ}/compose" || { echo "${COMPOSE}: Failed to change directory"; break; } - - TARGET="${STAGING_ROOT}/${CATEGORY_STUB}/${REV}/${SIG_COMPOSE[$SIG]}" - mkdir -p "${TARGET}" - # disabling because none of our files should be starting with dashes. If they - # are something is *seriously* wrong here. - # shellcheck disable=SC2035 - sudo -l && find **/* -maxdepth 0 -type d | parallel --will-cite -j 18 sudo rsync -av --chown=10004:10005 --progress --relative --human-readable \ - {} "${TARGET}" -done +#for SIG in "${!SIG_COMPOSE[@]}"; do +# echo "${SIG}: Syncing" +# cd "/mnt/compose/${MAJ}/latest-${SIG}-${MAJ}/compose" || { echo "${COMPOSE}: Failed to change directory"; break; } +# +# TARGET="${STAGING_ROOT}/${CATEGORY_STUB}/${REV}/${SIG_COMPOSE[$SIG]}" +# mkdir -p "${TARGET}" +# # disabling because none of our files should be starting with dashes. If they +# # are something is *seriously* wrong here. +# # shellcheck disable=SC2035 +# sudo -l && find **/* -maxdepth 0 -type d | parallel --will-cite -j 18 sudo rsync -av --chown=10004:10005 --progress --relative --human-readable \ +# {} "${TARGET}" +#done # Create symlinks for repos that were once separate from the main compose for LINK in "${LINK_REPOS[@]}"; do