From 8591dfae526fd8a36b68a3ea539eacbcc23fcbf7 Mon Sep 17 00:00:00 2001 From: lbonatti Date: Thu, 4 Aug 2022 10:25:01 -0300 Subject: [PATCH] relocate /www to /var/www Adapt filesystem usage to meet OSTree requirements relocating folder /www to /var/www Test Plan: PASS: CentOS -> CentOS upgrade: - 22.06 -> 22.12 Story: 2009303 Task: 45896 Signed-off-by: lbonatti Change-Id: Iff532db14f65773375948e500764b96dc11d0d8a --- bsp-files/upgrades/import.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bsp-files/upgrades/import.sh b/bsp-files/upgrades/import.sh index e8552efc..98970289 100644 --- a/bsp-files/upgrades/import.sh +++ b/bsp-files/upgrades/import.sh @@ -82,12 +82,12 @@ else cp -p ${CURRENT_FEED_DIR}/install_uuid ${FEED_DIR}/ if [ -d ${ISO_DIR}/patches ]; then - mkdir -p /www/pages/updates/rel-${VERSION} - cp -r ${ISO_DIR}/patches/Packages ${ISO_DIR}/patches/repodata /www/pages/updates/rel-${VERSION}/ + mkdir -p /var/www/pages/updates/rel-${VERSION} + cp -r ${ISO_DIR}/patches/Packages ${ISO_DIR}/patches/repodata /var/www/pages/updates/rel-${VERSION}/ rsync -ac ${ISO_DIR}/patches/metadata/ /opt/patching/metadata/ mkdir -p /opt/patching/packages/${VERSION} - find /www/pages/updates/rel-${VERSION}/Packages -name '*.rpm' \ + find /var/www/pages/updates/rel-${VERSION}/Packages -name '*.rpm' \ | xargs --no-run-if-empty -I files cp --preserve=all files /opt/patching/packages/${VERSION}/ fi