Merge "Fix dir creation for downloading patches from pxeboot server"

This commit is contained in:
Zuul 2018-06-28 13:14:31 +00:00 committed by Gerrit Code Review
commit 24ba2ae211
1 changed files with 2 additions and 0 deletions

View File

@ -87,8 +87,10 @@ patches_url=xxxHTTP_URLxxx/patches
wget -q --spider ${patches_url}/
if [ $? -eq 0 ]; then
echo "Downloading patches..." >/dev/console
cd /www/pages
mkdir -p updates/rel-xxxPLATFORM_RELEASExxx/Packages
mkdir -p updates/rel-xxxPLATFORM_RELEASExxx/repodata
cd updates/rel-xxxPLATFORM_RELEASExxx
declare -i patches_cut_dirs=$((cut_dirs+1))
wget --mirror --no-parent --no-host-directories --reject 'index.html*' --cut-dirs=$patches_cut_dirs $patches_url/Packages/ -o $anaconda_logdir/patches_rpmget.log \