From 6150eed168a7975d61354db42a3edad64e3308da Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Tue, 13 Dec 2022 17:45:04 -0700 Subject: [PATCH] add sig to list generation --- sync/sync-file-list-parallel.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/sync/sync-file-list-parallel.sh b/sync/sync-file-list-parallel.sh index 48feb57..d64a0c2 100644 --- a/sync/sync-file-list-parallel.sh +++ b/sync/sync-file-list-parallel.sh @@ -18,9 +18,13 @@ if [ $ret_val -eq "0" ]; then echo "Starting full file list for root" cd "${PRODUCTION_ROOT}/" || { echo "Failed to change directory"; exit 1; } find . > "${PRODUCTION_ROOT}/fullfilelist" & ROOTPID=$! + echo "Starting full file list for sig" + cd "${PRODUCTION_ROOT}/${SIG_CATEGORY_STUB}" || { echo "Failed to change directory"; exit 1; } + find . > "${PRODUCTION_ROOT}/${SIG_CATEGORY_STUB}/fullfilelist" & SIGPID=$! wait $CATEPID wait $ROOTPID + wait $SIGPID echo "Generating filelist for quick-fedora-mirror users" if [[ -f /usr/local/bin/create-filelist ]]; then @@ -29,13 +33,17 @@ if [ $ret_val -eq "0" ]; then /bin/cp fullfiletimelist-rocky fullfiletimelist-rocky-old /usr/local/bin/create-filelist > fullfiletimelist-rocky & CREALIPID=$! - # We're already here, but Justin Case wanted this cd "${PRODUCTION_ROOT}/" || { echo "Failed to change directory"; exit 1; } /bin/cp fullfiletimelist-rocky fullfiletimelist-rocky-old /usr/local/bin/create-filelist > fullfiletimelist-rocky & ROOTLIPID=$! + cd "${PRODUCTION_ROOT}/${SIG_CATEGORY_STUB}" || { echo "Failed to change directory"; exit 1; } + /bin/cp fullfiletimelist-sig fullfiletimelist-sig-old + /usr/local/bin/create-filelist > fullfiletimelist-sig & SIGLIPID=$! + wait $CREALIPID wait $ROOTLIPID + wait $SIGLIPID cd "${PRODUCTION_ROOT}/${CATEGORY_STUB}/" || { echo "Failed to change directory"; exit 1; } chown 10004:10005 fullfilelist fullfiletimelist-rocky fullfiletimelist fullfiletimelist-rocky-linux @@ -45,7 +53,10 @@ if [ $ret_val -eq "0" ]; then cd "${PRODUCTION_ROOT}/" || { echo "Failed to change directory"; exit 1; } chown 10004:10005 fullfilelist fullfiletimelist-rocky fullfiletimelist cp fullfiletimelist-rocky fullfiletimelist - fi + cd "${PRODUCTION_ROOT}/${SIG_CATEGORY_STUB}" || { echo "Failed to change directory"; exit 1; } + chown 10004:10005 fullfilelist fullfiletimelist-sig fullfiletimelist + cp fullfiletimelist-sig fullfiletimelist + fi fi