Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
unstable
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
PROINFODATA
unstable
Commits
aafe8d6a
Commit
aafe8d6a
authored
11 years ago
by
Edileuton Henrique de Oliveira
Browse files
Options
Downloads
Patches
Plain Diff
bootstraps: Fix lastexec access permission denied
Signed-off-by:
Edileuton Henrique de Oliveira
<
eho09@c3sl.ufpr.br
>
parent
87a3b2f1
Branches
Branches containing commit
No related tags found
1 merge request
!1
Fix Lastexec Permission Denied
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
build/bootstraps/bootstrap-install.sh
+11
-11
11 additions, 11 deletions
build/bootstraps/bootstrap-install.sh
with
11 additions
and
11 deletions
build/bootstraps/bootstrap-install.sh
+
11
−
11
View file @
aafe8d6a
...
...
@@ -261,6 +261,15 @@ rm -rf "${AGENT_DIR}" &> /dev/null
tar
xzf
"
${
FILE
}
"
&> /dev/null
rm
-rf
"
${
FILE
}
"
&> /dev/null
# Restore last-exec.tmp
if
!
test
-z
${
LASTEXECBACKUP
}
;
then
echo
${
LASTEXECBACKUP
}
>
${
LASTEXEC
}
fi
# Restore net-last-exec.tmp
if
!
test
-z
${
NETLASTEXECBACKUP
}
;
then
echo
${
NETLASTEXECBACKUP
}
>
${
NETLASTEXEC
}
fi
# Change files' owner
if
!
chown
-R
seed_mec:seed_mec
"
${
SEED_MEC_HOME
}
"
;
then
rm
-rf
"
${
SEED_MEC_HOME
}
"
&> /dev/null
...
...
@@ -272,15 +281,6 @@ fi
# Export a variable to inform the agent that this is its first execution
export
FIRST_EXECUTION
=
1
# Restore last-exec.tmp
if
!
test
-z
${
LASTEXECBACKUP
}
;
then
echo
${
LASTEXECBACKUP
}
>
${
LASTEXEC
}
fi
# Restore net-last-exec.tmp
if
!
test
-z
${
NETLASTEXECBACKUP
}
;
then
echo
${
NETLASTEXECBACKUP
}
>
${
NETLASTEXEC
}
fi
# Run the agent and check if its execution went alright, exiting in case of
# error
if
!
su
-c
"bash
${
AGENT_DIR
}
/update.sh"
seed_mec
||
...
...
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