Fixing bugs

This commit is contained in:
Your Name 2025-04-25 20:16:48 +12:00
parent 9409adf4f6
commit f73e6f1ac5
2 changed files with 6 additions and 5 deletions

View File

@ -150,11 +150,12 @@ bool service_runner::install() {
// Copy template files
{
std::cout << "Copying template files from " << tinfo.path << " to " << mRemote_service_template_path << "/" << std::endl;
std::cout << "Copying template files from [LOCAL] " << tinfo.path << std::endl << std::string(24,' ')<<"to [REMOTE] " << mRemote_service_template_path << "/" << std::endl;
std::string rsync_cmd = "rsync --delete -zrpc -e 'ssh -p " + m_server_env->get_SSH_PORT() + "' " +
quote(tinfo.path + "/ ") +
quote(tinfo.path + "/") + " "+
m_server_env->get_SSH_USER() + "@" + m_server_env->get_SSH_HOST() + ":" +
quote(mRemote_service_template_path+"/");
//std::cout << std::endl << rsync_cmd << std::endl << std::endl;
execute_local_command(rsync_cmd,"Failed to copy template files");
}
@ -165,9 +166,9 @@ bool service_runner::install() {
std::cerr << "Error: Service directory not found: " << local_service_path << std::endl;
return false;
}
std::cout << "Copying service files from " << local_service_path << " to " << mRemote_service_config_path << std::endl;
std::cout << "Copying service files from [LOCAL] " << local_service_path << std::endl <<std::string(24,' ')<<"to [REMOTE] " << mRemote_service_config_path << std::endl;
std::string rsync_cmd = "rsync --delete -zrpc -e 'ssh -p " + m_server_env->get_SSH_PORT() + "' " +
quote(local_service_path + "/ ") +
quote(local_service_path + "/") + " "+
m_server_env->get_SSH_USER() + "@" + m_server_env->get_SSH_HOST() + ":" +
quote(mRemote_service_config_path + "/");
execute_local_command(rsync_cmd,"Failed to copy service files");

View File

@ -5,4 +5,4 @@
# It is used to install the service on the server.
# It is called with the path to the server specific env file as an argument.
echo "Installation of ${CONTAINER_NAME} complete"
echo "Installation of dropshell-agent complete"