diff --git a/oam/oamcpp/liboamcpp.cpp b/oam/oamcpp/liboamcpp.cpp index b1e5d801e..f0c067db6 100644 --- a/oam/oamcpp/liboamcpp.cpp +++ b/oam/oamcpp/liboamcpp.cpp @@ -8478,8 +8478,7 @@ namespace oam std::string Oam::updateFstab(std::string device, std::string dbrootID) { //check if entry already exist - string cmd = "grep /data" + dbrootID + " > /etc/fstab /dev/null 2>&1"; - + string cmd = "grep /data" + dbrootID + " /etc/fstab /dev/null 2>&1"; int status = system(cmd.c_str()); if (WEXITSTATUS(status) == 0 ) return ""; diff --git a/oamapps/postConfigure/postConfigure.cpp b/oamapps/postConfigure/postConfigure.cpp index 653154eab..ccaaa7d09 100644 --- a/oamapps/postConfigure/postConfigure.cpp +++ b/oamapps/postConfigure/postConfigure.cpp @@ -2317,10 +2317,10 @@ int main(int argc, char *argv[]) if ( !found ) { - cout << "Invalid Entry, Module pm1 has to have dbroot #1 assigned to it, please re-enter" << endl; + cout << endl << "Invalid Entry, Module pm1 has to have dbroot #1 assigned to it, please re-enter" << endl; if ( noPrompting ) exit(1); - break; + continue; } } @@ -2434,7 +2434,7 @@ int main(int argc, char *argv[]) //get EC2 volume name and info if ( DBRootStorageType == "external" && cloud == "amazon") { - cout << endl << "*** Setup External EBS Storage for dbroot #" << *it << " ***" << endl; + cout << endl << "*** Setup External EBS Volume for dbroot #" << *it << " ***" << endl; cout << "*** NOTE: You can either have postConfigure create a new EBS volume or you can provide an existing Volume ID to use" << endl << endl; string volumeNameID = "PMVolumeName" + *it; @@ -2457,7 +2457,7 @@ int main(int argc, char *argv[]) while(true) { - pcommand = callReadline("Create a new EBS volume? [y,n] (y) > "); + pcommand = callReadline("Create a new EBS volume for dbroot #" + *it + " ? [y,n] (y) > "); if (pcommand) { if (strlen(pcommand) > 0) create = pcommand;