From 5e68322d229c07493612fe32517751fbedfc0fe1 Mon Sep 17 00:00:00 2001 From: Mohan Boddu Date: Sat, 4 Mar 2017 12:42:58 -0500 Subject: [PATCH] Create dir if the dir not exists for syncing Fix for one of the issues in #6676 Signed-off-by: Mohan Boddu --- nightly.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nightly.sh b/nightly.sh index 30668b2..a0a686b 100755 --- a/nightly.sh +++ b/nightly.sh @@ -89,6 +89,9 @@ ostree prune --repo=$ATOMICREPO --keep-younger-than="14 days ago" --refs-only send_fedmsg "${fedmsg_json_start}" ${DIST} rsync.start # Sync the content to /pub/fedora +if [ ! -d /pub/fedora/linux/development/$DIST ]; then + mkdir /pub/fedora/linux/development/$DIST +fi $RSYNCPREFIX compose-partial-copy --arch=armhfp --arch=x86_64 --arch src \ "$TARGET_DIR/$NEWCOMPOSE_ID" /pub/fedora/linux/development/$DIST/ \ --variant Everything --variant Atomic --variant CloudImages --variant Docker --variant Server --variant Spins --variant Workstation \ @@ -101,6 +104,9 @@ $RSYNCPREFIX rm /pub/fedora/linux/development/$DIST/.composeinfo $RSYNCPREFIX ./releng/scripts/build_composeinfo /pub/fedora/linux/development/$DIST/ --name "$NEWCOMPOSE_ID" # Sync the content to /pub/alt +if [ ! -d /pub/alt/development/$DIST ]; then + mkdir /pub/alt/development/$DIST +fi $RSYNCPREFIX compose-partial-copy --arch=armhfp --arch=x86_64 \ "$TARGET_DIR/$NEWCOMPOSE_ID" /pub/alt/development/$DIST/ \ --variant Cloud --variant Labs \ @@ -113,6 +119,9 @@ $RSYNCPREFIX rm /pub/alt/development/$DIST/.composeinfo $RSYNCPREFIX ./releng/scripts/build_composeinfo /pub/alt/development/$DIST/ --name "$NEWCOMPOSE_ID" # Sync the content to /pub/fedora-secondary +if [ ! -d /pub/fedora-secondary/development/$DIST ]; then + mkdir /pub/fedora-secondary/development/$DIST +fi $RSYNCPREFIX compose-partial-copy --arch=aarch64 --arch=i386 --arch=ppc64 --arch=ppc64le \ "$TARGET_DIR/$NEWCOMPOSE_ID" /pub/fedora-secondary/development/$DIST/ \ --exclude=s390x \