mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-21 10:40:24 +00:00
update according to comments
This commit is contained in:
@@ -15,7 +15,7 @@ check:output =~ 8898
|
||||
check:rc==0
|
||||
cmd:if [[ "__GETNODEATTR($$CN,arch)__" = "ppc64le" ]]; then arch=ppc64; else arch=__GETNODEATTR($$CN,arch)__;fi; mknb $arch
|
||||
check:rc==0
|
||||
cmd:/opt/xcat/share/xcat/tools/autotest/testcase/httpport/check_wget_files.sh /tftpboot/pxelinux.cfg/p/
|
||||
cmd:/opt/xcat/share/xcat/tools/autotest/testcase/httpport/check_wget_files.sh /tftpboot/pxelinux.cfg/p/ 8898
|
||||
check:rc==0
|
||||
cmd:/opt/xcat/share/xcat/tools/autotest/testcase/httpport/change_http_port.sh 8898 80
|
||||
cmd:netstat -nlp|grep -E "apache2|httpd"
|
||||
|
@@ -6,20 +6,20 @@ files=$(ls $path)
|
||||
for filename in $files
|
||||
do
|
||||
echo "The file is $filename"
|
||||
grep 8898 $path$filename
|
||||
grep $2 $path$filename
|
||||
if [ $? != 0 ];then
|
||||
echo "port 8898 does not exist"
|
||||
echo "port $2 does not exist"
|
||||
exit 1;
|
||||
fi
|
||||
links=$(grep 8898 $path$filename|awk -F " " '{print $2}')
|
||||
links=$(grep $2 $path$filename|awk -F " " '{print $2}')
|
||||
for link in $links
|
||||
do
|
||||
wget $link
|
||||
if [ $? != 0 ];then
|
||||
echo "wget failed"
|
||||
echo "wget file $link failed"
|
||||
exit 1;
|
||||
else
|
||||
echo "wget $link succeed"
|
||||
echo "wget file $link succeed"
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
Reference in New Issue
Block a user