This commit is contained in:
Your Name
2025-04-26 21:57:26 +12:00
parent 3c03c2a536
commit d95500f679
3 changed files with 35 additions and 21 deletions

View File

@ -170,10 +170,12 @@ void create_server(const std::string &server_name)
server_env_file.close();
// 4. add dropshell-agent service to server
std::string service_dir = server_dir + "/dropshell-agent";
std::filesystem::create_directory(service_dir);
std::string service_env_path = service_dir + "/service.env";
std::filesystem::copy(get_local_system_templates_path() + "/dropshell-agent/example/service.env", service_env_path);
create_service(server_name, "dropshell-agent", "dropshell-agent", true); // silently create service.
// std::string service_dir = server_dir + "/dropshell-agent";
// std::filesystem::create_directory(service_dir);
// std::string service_env_path = service_dir + "/service.env";
// std::filesystem::copy(get_local_system_templates_path() + "/dropshell-agent/example/service.env", service_env_path);
std::cout << "Server created successfully: " << server_name << std::endl;
std::cout << "Please complete the installation:" <<std::endl;