2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-15 17:16:10 +00:00

add apt-key add once more before xcat installation on ubuntu

This commit is contained in:
litingt
2015-01-14 19:40:06 -08:00
parent 8d0ded97fa
commit 834dd1f385

View File

@ -573,6 +573,7 @@ sub install_xcat {
}elsif($mn =~ /ubuntux/){
system("xdsh $confkeys{$mn} \"/xcat-core/mklocalrepo.sh\" >/dev/null 2>&1");
system("xdsh $confkeys{$mn} \"/xcat-dep/mklocalrepo.sh\" >/dev/null 2>&1");
system("xdsh $confkeys{$mn} \"wget -O - \"http://sourceforge.net/projects/xcat/files/ubuntu/apt.key/download\" | apt-key add -\" >/dev/null 2>&1");
system("xdsh $confkeys{$mn} 'apt-get clean all' >/dev/null 2>&1");
system("xdsh $confkeys{$mn} 'apt-get update' >/dev/null 2>&1");
system("xdsh $confkeys{$mn} 'apt-get -y install xcat xCAT-test > /var/log/xcat/install_xcat.log 2>&1' >/dev/null 2>&1");