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 <LuizEduardo.Bonatti@windriver.com>
Change-Id: Iff532db14f65773375948e500764b96dc11d0d8a
This commit is contained in:
lbonatti 2022-08-04 10:25:01 -03:00
parent b6dad0a071
commit 8591dfae52
1 changed files with 3 additions and 3 deletions

View File

@ -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