From aaffcc2f4dcaa7f501accfe92ee02922997335f1 Mon Sep 17 00:00:00 2001 From: Casandra Qiu Date: Wed, 11 Jan 2017 16:11:10 -0500 Subject: [PATCH 1/2] Add default license file for configonie command --- xCAT-server/share/xcat/scripts/configonie | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/share/xcat/scripts/configonie b/xCAT-server/share/xcat/scripts/configonie index 3aa2ed2ac..c49afed19 100755 --- a/xCAT-server/share/xcat/scripts/configonie +++ b/xCAT-server/share/xcat/scripts/configonie @@ -217,7 +217,7 @@ sub cumulus_exec { sub install_license { my @config_switches; print "install_license\n"; - my $license_file; + my $license_file = "/root/license.txt"; my $file_name = "/root/license.txt"; if ($::LICENSE) { @@ -226,7 +226,7 @@ sub install_license { print "file = $license_file\n"; if (!(-e $license_file) ) { - print "$license_file is not exist\n"; + print "license file $license_file is not exist\n"; return; } From c0f9bd67a31223cf9d02a03292a515be6dee014e Mon Sep 17 00:00:00 2001 From: Casandra Qiu Date: Wed, 11 Jan 2017 20:43:15 -0500 Subject: [PATCH 2/2] change "is" to "does" --- xCAT-server/share/xcat/scripts/configonie | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/share/xcat/scripts/configonie b/xCAT-server/share/xcat/scripts/configonie index c49afed19..aaa1b175a 100755 --- a/xCAT-server/share/xcat/scripts/configonie +++ b/xCAT-server/share/xcat/scripts/configonie @@ -226,7 +226,7 @@ sub install_license { print "file = $license_file\n"; if (!(-e $license_file) ) { - print "license file $license_file is not exist\n"; + print "license file $license_file does not exist\n"; return; }