Merge "Fix dir creation for downloading patches from pxeboot server"
This commit is contained in:
commit
24ba2ae211
|
@ -87,8 +87,10 @@ patches_url=xxxHTTP_URLxxx/patches
|
||||||
wget -q --spider ${patches_url}/
|
wget -q --spider ${patches_url}/
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "Downloading patches..." >/dev/console
|
echo "Downloading patches..." >/dev/console
|
||||||
|
cd /www/pages
|
||||||
mkdir -p updates/rel-xxxPLATFORM_RELEASExxx/Packages
|
mkdir -p updates/rel-xxxPLATFORM_RELEASExxx/Packages
|
||||||
mkdir -p updates/rel-xxxPLATFORM_RELEASExxx/repodata
|
mkdir -p updates/rel-xxxPLATFORM_RELEASExxx/repodata
|
||||||
|
cd updates/rel-xxxPLATFORM_RELEASExxx
|
||||||
declare -i patches_cut_dirs=$((cut_dirs+1))
|
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 \
|
wget --mirror --no-parent --no-host-directories --reject 'index.html*' --cut-dirs=$patches_cut_dirs $patches_url/Packages/ -o $anaconda_logdir/patches_rpmget.log \
|
||||||
|
|
Loading…
Reference in New Issue