Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
datasid
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
Harbor Registry
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
datasid
Commits
5a6416dd
Commit
5a6416dd
authored
11 years ago
by
edileuton
Browse files
Options
Downloads
Patches
Plain Diff
agent: Fix permission denied to acess lastexec file
Signed-off-by:
edileuton
<
edileuton@gmail.com
>
parent
c9759e1d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
agent/bootstrap/install
+10
-9
10 additions, 9 deletions
agent/bootstrap/install
with
10 additions
and
9 deletions
agent/bootstrap/install
+
10
−
9
View file @
5a6416dd
...
...
@@ -246,6 +246,16 @@ cp -a ".md5sum" ".backup/"
printf
"OK!
\n
"
>
&3
# Restore lastexec
if
!
test
-z
${
LASTEXECBACKUP
}
;
then
echo
${
LASTEXECBACKUP
}
>
${
LASTEXEC
}
fi
# Restore netlastexec
if
!
test
-z
${
NETLASTEXECBACKUP
}
;
then
echo
${
NETLASTEXECBACKUP
}
>
${
NETLASTEXEC
}
fi
# Change files owner
if
!
chown
-R
datasid:datasid
"
${
DATASID_HOME
}
"
;
then
printf
"FALHA!
\n
"
>
&3
...
...
@@ -260,15 +270,6 @@ printf "Executando o agente pela primeira vez... " >&3
# Export a variable to inform the agent that this is its first execution
export
FIRST_EXECUTION
=
1
# Restore lastexec
if
!
test
-z
${
LASTEXECBACKUP
}
;
then
echo
${
LASTEXECBACKUP
}
>
${
LASTEXEC
}
fi
if
!
test
-z
${
NETLASTEXECBACKUP
}
;
then
echo
${
NETLASTEXECBACKUP
}
>
${
NETLASTEXEC
}
fi
# Run the agent and check if its execution was alright, exiting in case of error
su
-c
"bash
${
DATASID_HOME
}
/bin/datasid-agent.sh"
datasid
RETVAL
=
$?
...
...
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