Working on install.
Some checks failed
Dropshell Test / Build_and_Test (push) Has been cancelled

This commit is contained in:
Your Name 2025-05-13 22:26:24 +12:00
parent 97776b4642
commit 283b88effc

View File

@ -170,7 +170,7 @@ namespace dropshell
result += buffer; result += buffer;
} }
pclose(pipe); pclose(pipe);
return result; return trim(result);
} }
int update_dropshell() int update_dropshell()
@ -270,9 +270,12 @@ namespace dropshell
std::cout << "Downloaded bb64 to " << localpath::agent() << std::endl; std::cout << "Downloaded bb64 to " << localpath::agent() << std::endl;
else else
std::cerr << "Failed to download bb64 to " << localpath::agent() << std::endl; std::cerr << "Failed to download bb64 to " << localpath::agent() << std::endl;
} else } else {
std::cout << "Updating bb64..." << std::endl;
system((localpath::agent()+"bb64 -u").c_str()); // update. system((localpath::agent()+"bb64 -u").c_str()); // update.
} }
return 0;
}
int install_host() int install_host()
{ {
@ -286,12 +289,16 @@ namespace dropshell
rval = install_local_agent(); rval = install_local_agent();
if (rval != 0) if (rval != 0)
return rval; return rval;
return 0;
} }
int install_server(const std::string &server) int install_server(const std::string &server)
{ {
#pragma WARNING "Need to implement install_server"
// install the dropshell agent on the given server. // install the dropshell agent on the given server.
return 1; // NOTIMPL
} }
// ------------------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------------------