Fixing bugs
This commit is contained in:
parent
9409adf4f6
commit
f73e6f1ac5
@ -150,11 +150,12 @@ bool service_runner::install() {
|
|||||||
|
|
||||||
// Copy template files
|
// 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() + "' " +
|
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() + ":" +
|
m_server_env->get_SSH_USER() + "@" + m_server_env->get_SSH_HOST() + ":" +
|
||||||
quote(mRemote_service_template_path+"/");
|
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");
|
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;
|
std::cerr << "Error: Service directory not found: " << local_service_path << std::endl;
|
||||||
return false;
|
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() + "' " +
|
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() + ":" +
|
m_server_env->get_SSH_USER() + "@" + m_server_env->get_SSH_HOST() + ":" +
|
||||||
quote(mRemote_service_config_path + "/");
|
quote(mRemote_service_config_path + "/");
|
||||||
execute_local_command(rsync_cmd,"Failed to copy service files");
|
execute_local_command(rsync_cmd,"Failed to copy service files");
|
||||||
|
@ -5,4 +5,4 @@
|
|||||||
# It is used to install the service on the server.
|
# 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.
|
# 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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user