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
b6ed8fda
Commit
b6ed8fda
authored
11 years ago
by
Edileuton Henrique de Oliveira
Browse files
Options
Downloads
Patches
Plain Diff
agent: Fix root cron edit on update
Signed-off-by:
Edileuton Henrique de Oliveira
<
eho09@c3sl.ufpr.br
>
parent
3eae6c84
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
agent/bin/datasid-agent.sh
+1
-1
1 addition, 1 deletion
agent/bin/datasid-agent.sh
agent/bootstrap/update
+0
-20
0 additions, 20 deletions
agent/bootstrap/update
with
1 addition
and
21 deletions
agent/bin/datasid-agent.sh
+
1
−
1
View file @
b6ed8fda
...
...
@@ -68,7 +68,7 @@ function checkUpdate()
# If $FIST_EXECUTION is set, do not run the update. Otherwise, run the
# update and return 1 in case of error
test
"
${
FIRST_EXECUTION
}
"
||
sudo
bash
${
DATADIR
}
/datasid-update.run
||
return
1
test
"
${
FIRST_EXECUTION
}
"
||
bash
${
DATADIR
}
/datasid-update.run
||
return
1
rm
-f
${
DATADIR
}
/datasid-update.run
...
...
This diff is collapsed.
Click to expand it.
agent/bootstrap/update
+
0
−
20
View file @
b6ed8fda
...
...
@@ -43,21 +43,6 @@ if [[ ${PKG_MD5} != $(md5sum ${PKG_FILE} | awk '{print $1}') ]]; then
exit
4
fi
# Create datasid user, group and home
if
!
/usr/sbin/groupadd
-r
-f
datasid
;
then
printf
"ERRO: Falha ao criar o grupo datasid.
\n
"
exit
1
fi
/usr/sbin/useradd
-r
-M
-g
datasid
-s
/bin/bash
-d
"
${
DATASID_HOME
}
"
datasid
RETVAL
=
$?
# NOTE: RETVAL=9 means the user already exists (that is acceptable)
if
test
${
RETVAL
}
-ne
0
-a
${
RETVAL
}
-ne
9
;
then
printf
"ERRO: Falha ao criar o usuário datasid.
\n
"
exit
2
fi
# Make sure home exists
mkdir
-p
"
${
DATASID_HOME
}
"
...
...
@@ -91,11 +76,6 @@ fi
rm
-f
"
${
PKG_FILE
}
"
# Change files owner
if
!
chown
-R
datasid:datasid
"
${
DATASID_HOME
}
"
;
then
printf
"WARNING: Falha ao mudar dono dos arquivos.
\n
"
fi
# Check if the new files are OK
if
!
md5sum
--quiet
--check
.md5sum
;
then
printf
"WARNING: Arquivos extraidos corrompidos, restaurando backup...
\n
"
...
...
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