Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
agent
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
simmctic
agent
Commits
bfaa5219
There was a problem fetching the pipeline summary.
Commit
bfaa5219
authored
7 years ago
by
Lais Frigerio
Browse files
Options
Downloads
Patches
Plain Diff
SCRUM#6
parent
76b447ef
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/agent/curl.cpp
+0
-1
0 additions, 1 deletion
src/agent/curl.cpp
src/agent/get.cpp
+6
-3
6 additions, 3 deletions
src/agent/get.cpp
with
6 additions
and
4 deletions
src/agent/curl.cpp
+
0
−
1
View file @
bfaa5219
...
...
@@ -101,7 +101,6 @@ bool Curl::downloadAgent(std::string url, std::fstream* logFile,
fclose
(
fp
);
// run agent.run
system
(
"pwd"
);
execute_agent
(
tmp_dot_run
);
// remove agent tmp directory
...
...
This diff is collapsed.
Click to expand it.
src/agent/get.cpp
+
6
−
3
View file @
bfaa5219
...
...
@@ -46,7 +46,11 @@ int check_update() {
agent
.
setLogDir
(
"/log/"
);
create_directories
(
agent
);
agent
.
setLogFile
(
"datasid-agent.log"
);
agent
.
setDirInstall
(
"/opt/agentc3sl"
);
#ifdef __linux
agent
.
setDirInstall
(
"/opt/agentc3sl"
);
#endif
std
::
fstream
logFile
(
agent
.
getLogFile
().
c_str
(),
std
::
fstream
::
app
);
/* run common.cpp to make parse from config and proxy file */
...
...
@@ -121,7 +125,6 @@ int check_update() {
*/
bool
compare_version
(
Agent
*
agent
,
std
::
string
version
,
std
::
fstream
*
logFile
)
{
return
true
;
if
(
!
strcmp
(
version
.
c_str
(),
""
))
{
agent
->
setMessage
(
__DATE__
+
std
::
string
(
" - ERROR: Server returned an empty version string."
));
...
...
@@ -147,7 +150,7 @@ bool compare_version(Agent *agent, std::string version,
*/
bool
download
(
Conf
conf
,
Agent
*
agent
,
std
::
fstream
*
logFile
)
{
Curl
curl
;
if
(
curl
.
downloadAgent
(
"file:///home/lais/Imagens/agent/agent-0.run"
,
if
(
curl
.
downloadAgent
(
conf
.
getWebService
()
,
logFile
,
agent
))
return
true
;
return
false
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment