From 2d0cea5542e178794cb4855757b80ffa8ab85bd0 Mon Sep 17 00:00:00 2001 From: david hill Date: Tue, 16 Jan 2018 10:18:29 -0600 Subject: [PATCH] MCOL-1167 - fixed -c option --- oamapps/postConfigure/postConfigure.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/oamapps/postConfigure/postConfigure.cpp b/oamapps/postConfigure/postConfigure.cpp index 9f7505f6b..4016688c2 100644 --- a/oamapps/postConfigure/postConfigure.cpp +++ b/oamapps/postConfigure/postConfigure.cpp @@ -166,7 +166,7 @@ bool thread_remote_installer = true; string singleServerInstall = "1"; string reuseConfig ="n"; -string oldFileName; +string oldFileName = oam::UnassignedName; string glusterCopies; string glusterInstalled = "n"; string hadoopInstalled = "n"; @@ -370,7 +370,8 @@ int main(int argc, char *argv[]) exit(1); } - oldFileName = installDir + "/etc/Columnstore.xml.rpmsave"; + if ( oldFileName == oam::UnassignedName ) + oldFileName = installDir + "/etc/Columnstore.xml.rpmsave"; cout << endl; cout << "This is the MariaDB ColumnStore System Configuration and Installation tool." << endl;