From cfba09c37bb3f06e8e9e8890a91a7ef071dfd838 Mon Sep 17 00:00:00 2001 From: litingt Date: Wed, 14 Jan 2015 19:40:06 -0800 Subject: [PATCH] add apt-key add once more before xcat installation on ubuntu --- xCAT-server/share/xcat/tools/xCATreg | 1 + 1 file changed, 1 insertion(+) diff --git a/xCAT-server/share/xcat/tools/xCATreg b/xCAT-server/share/xcat/tools/xCATreg index f41926eb7..a12f67faf 100644 --- a/xCAT-server/share/xcat/tools/xCATreg +++ b/xCAT-server/share/xcat/tools/xCATreg @@ -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");