On Sat, Oct 09, 2021 at 11:36:27AM +0800, Wang Lin wrote:
change to use https and domain name
Signed-off-by: Wang Lin wanglin199@huawei.com
tests/rpmbuild | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/tests/rpmbuild b/tests/rpmbuild index 0f5244a1b..9b13591d2 100755 --- a/tests/rpmbuild +++ b/tests/rpmbuild @@ -206,7 +206,13 @@ localinstall_dependent_package() yum install -y wget mkdir /tmp/rpm cd /tmp/rpm
- wget -c -r -np -nd "http://$%7BLKP_SERVER%7D:$%7BSRV_HTTP_RPM_PORT:-20012%7D$depend_rpm_dest"
- local protocol
- if [ ${#SRV_HTTP_PROTOCOL} -ne 0 ] ; then
protocol=$SRV_HTTP_PROTOCOL
- else
protocol="https"
- fi
- wget -c -r -np -nd "$protocol://${SCHED_HOST}:${SRV_HTTP_RPM_PORT:-20012}$depend_rpm_dest"
perhaps you can write like this:
wget -c -r -np -nd "${SRV_HTTP_PROTOCOL:-https}://${SCHED_HOST}:${SRV_HTTP_RPM_PORT:-20012}$depend_rpm_dest"
Thanks, Liushaofei
yum localinstall -y *.rpm } show_rpm_files() -- 2.23.0