This commit is contained in:
parent
97776b4642
commit
283b88effc
@ -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,8 +270,11 @@ 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
|
||||||
}
|
}
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user