dropshell release 2025.0521.2125
Some checks failed
Dropshell Test / Build_and_Test (push) Has been cancelled
Some checks failed
Dropshell Test / Build_and_Test (push) Has been cancelled
This commit is contained in:
@@ -238,17 +238,22 @@ namespace dropshell
|
||||
{
|
||||
maketitle("Installing dropshell agent on this computer...");
|
||||
|
||||
// clear out old cruft.
|
||||
std::filesystem::remove_all(localpath::agent_local());
|
||||
std::filesystem::remove_all(localpath::agent_remote());
|
||||
|
||||
// recreate the directories.
|
||||
localpath::create_directories();
|
||||
|
||||
// create the agent-local directory.
|
||||
recreate_agent_local::recreate_tree(localpath::agent());
|
||||
// populate the agent-local directory.
|
||||
recreate_agent_local::recreate_tree(localpath::agent_local());
|
||||
|
||||
// run the local agent installer.
|
||||
execute_local_command(localpath::agent(), "agent-install.sh",{}, nullptr, cMode::Defaults | cMode::NoBB64);
|
||||
execute_local_command(localpath::agent_local(), "agent-install.sh",{}, nullptr, cMode::Defaults | cMode::NoBB64);
|
||||
|
||||
// create the agent-remote directory.
|
||||
// populate the agent-remote directory.
|
||||
info << "Creating local files to copy to remote agents..." << std::endl;
|
||||
recreate_agent_remote::recreate_tree(localpath::files_for_remote_agent());
|
||||
recreate_agent_remote::recreate_tree(localpath::agent_remote());
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -275,7 +280,7 @@ namespace dropshell
|
||||
// now create the agent.
|
||||
// copy across from the local agent files.
|
||||
info << "Copying local agent files to remote server... " << std::flush;
|
||||
shared_commands::rsync_tree_to_remote(localpath::files_for_remote_agent(), agent_path, server_env, false);
|
||||
shared_commands::rsync_tree_to_remote(localpath::agent_remote(), agent_path, server_env, false);
|
||||
info << "done." << std::endl;
|
||||
|
||||
// run the agent installer. Can't use BB64 yet, as we're installing it on the remote server.
|
||||
|
Reference in New Issue
Block a user