forked from sig_core/toolkit
reduce errors on syncs
This commit is contained in:
parent
034c2a7ed3
commit
047287e464
@ -51,10 +51,8 @@ ALL_REPOS=(
|
|||||||
|
|
||||||
NONSIG_COMPOSE=(
|
NONSIG_COMPOSE=(
|
||||||
Rocky
|
Rocky
|
||||||
Extras
|
|
||||||
Rocky-devel
|
Rocky-devel
|
||||||
Plus
|
Plus
|
||||||
rockyrpi
|
|
||||||
)
|
)
|
||||||
|
|
||||||
declare -A SIG_COMPOSE
|
declare -A SIG_COMPOSE
|
||||||
|
@ -28,18 +28,18 @@ done
|
|||||||
|
|
||||||
# sync all sig stuff
|
# sync all sig stuff
|
||||||
# Only enabled for giving preferential treatment.
|
# Only enabled for giving preferential treatment.
|
||||||
for SIG in "${!SIG_COMPOSE[@]}"; do
|
#for SIG in "${!SIG_COMPOSE[@]}"; do
|
||||||
echo "${SIG}: Syncing"
|
# echo "${SIG}: Syncing"
|
||||||
cd "/mnt/compose/${MAJ}/latest-${SIG}-${MAJ}/compose" || { echo "${COMPOSE}: Failed to change directory"; break; }
|
# cd "/mnt/compose/${MAJ}/latest-${SIG}-${MAJ}/compose" || { echo "${COMPOSE}: Failed to change directory"; break; }
|
||||||
|
#
|
||||||
TARGET="${STAGING_ROOT}/${CATEGORY_STUB}/${REV}/${SIG_COMPOSE[$SIG]}"
|
# TARGET="${STAGING_ROOT}/${CATEGORY_STUB}/${REV}/${SIG_COMPOSE[$SIG]}"
|
||||||
mkdir -p "${TARGET}"
|
# mkdir -p "${TARGET}"
|
||||||
# disabling because none of our files should be starting with dashes. If they
|
# # disabling because none of our files should be starting with dashes. If they
|
||||||
# are something is *seriously* wrong here.
|
# # are something is *seriously* wrong here.
|
||||||
# shellcheck disable=SC2035
|
# # 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 \
|
# sudo -l && find **/* -maxdepth 0 -type d | parallel --will-cite -j 18 sudo rsync -av --chown=10004:10005 --progress --relative --human-readable \
|
||||||
{} "${TARGET}"
|
# {} "${TARGET}"
|
||||||
done
|
#done
|
||||||
|
|
||||||
# Create symlinks for repos that were once separate from the main compose
|
# Create symlinks for repos that were once separate from the main compose
|
||||||
for LINK in "${LINK_REPOS[@]}"; do
|
for LINK in "${LINK_REPOS[@]}"; do
|
||||||
|
Loading…
Reference in New Issue
Block a user