diff --git a/src/service_runner.cpp b/src/service_runner.cpp index 3cd5a34..f1cb0a0 100644 --- a/src/service_runner.cpp +++ b/src/service_runner.cpp @@ -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 <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"); diff --git a/templates/dropshell-agent/install.sh b/templates/dropshell-agent/install.sh index f69f185..3684afc 100644 --- a/templates/dropshell-agent/install.sh +++ b/templates/dropshell-agent/install.sh @@ -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"