From 7855a387475a5dfc0f484bc36e0ac17d57185d5b Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Mon, 18 Jul 2022 08:33:24 -0700 Subject: [PATCH] just in case, use full path for bg processes --- sync/sync-file-list-parallel.sh | 7 +++++-- sync/sync-full-file-list.sh | 2 ++ sync/sync-root-file-list.sh | 2 ++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/sync/sync-file-list-parallel.sh b/sync/sync-file-list-parallel.sh index df55f5b..5f16d13 100644 --- a/sync/sync-file-list-parallel.sh +++ b/sync/sync-file-list-parallel.sh @@ -12,14 +12,17 @@ ret_val=$? if [ $ret_val -eq "0" ]; then # Full file list update for rocky linux itself + echo "Starting full file list for category" cd "${PRODUCTION_ROOT}/${CATEGORY_STUB}/" || { echo "Failed to change directory"; exit 1; } - find . > fullfilelist & CATEPID=$! + find . > "${PRODUCTION_ROOT}/${CATEGORY_STUB}/fullfilelist" & CATEPID=$! + echo "Starting full file list for root" cd "${PRODUCTION_ROOT}/" || echo { echo "Failed to change directory"; exit 1; } - find . > fullfilelist & ROOTPID=$! + find . > "${PRODUCTION_ROOT}/fullfilelist" & ROOTPID=$! wait $CATEPID wait $ROOTPID + echo "Generating filelist for quick-fedora-mirror users" if [[ -f /usr/local/bin/create-filelist ]]; then # We're already here, but Justin Case wanted this cd "${PRODUCTION_ROOT}/${CATEGORY_STUB}/" || { echo "Failed to change directory"; exit 1; } diff --git a/sync/sync-full-file-list.sh b/sync/sync-full-file-list.sh index 6e133bb..517e213 100644 --- a/sync/sync-full-file-list.sh +++ b/sync/sync-full-file-list.sh @@ -15,7 +15,9 @@ if [ $ret_val -eq "0" ]; then cd "${PRODUCTION_ROOT}/${CATEGORY_STUB}/" || { echo "Failed to change directory"; exit 1; } # Hardlink everything except xml files #hardlink -x '.*\.xml.*' "${REVISION}" + echo "Starting full file list for category" find . > fullfilelist + echo "Generating filelist for quick-fedora-mirror users" if [[ -f /usr/local/bin/create-filelist ]]; then # We're already here, but Justin Case wanted this cd "${PRODUCTION_ROOT}/${CATEGORY_STUB}/" || { echo "Failed to change directory"; exit 1; } diff --git a/sync/sync-root-file-list.sh b/sync/sync-root-file-list.sh index afe8d96..5287003 100644 --- a/sync/sync-root-file-list.sh +++ b/sync/sync-root-file-list.sh @@ -13,7 +13,9 @@ ret_val=$? if [ $ret_val -eq "0" ]; then # Full file list update for production root cd "${PRODUCTION_ROOT}/" || echo { echo "Failed to change directory"; exit 1; } + echo "Starting full file list for root" find . > fullfilelist + echo "Generating filelist for quick-fedora-mirror users" if [[ -f /usr/local/bin/create-filelist ]]; then # We're already here, but Justin Case wanted this cd "${PRODUCTION_ROOT}/" || { echo "Failed to change directory"; exit 1; }