Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
eole-wol
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
primtux-eole
Grenoble
eole-wol
Commits
3acab8ba
Verified
Commit
3acab8ba
authored
6 years ago
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
Pull before post install
parent
b320374d
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
do_postinstall.sh
+39
-0
39 additions, 0 deletions
do_postinstall.sh
postinstall.sh
+2
-37
2 additions, 37 deletions
postinstall.sh
with
41 additions
and
37 deletions
do_postinstall.sh
0 → 100755
+
39
−
0
View file @
3acab8ba
#!/bin/bash
# Copyright (C) 2018 Tetras Libre <Contact@Tetras-Libre.fr>
# Author: Beniamine, David <David.Beniamine@Tetras-Libre.fr>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
if
[
`
whoami
`
!=
"root"
]
then
echo
"This script should be run as root"
exit
1
fi
if
[
!
-z
"
`
which lxc-ls
`
"
]
then
DIR
=
`
dirname
$0
`
for
ctn
in
partage reseau
do
echo
"Running post install for
$ctn
"
scp postinstall_
$ctn
.sh
$ctn
:.
ssh
$ctn
./postinstall_
$ctn
.sh
ssh
$ctn
rm
postinstall_
$ctn
.sh
done
else
echo
"Please run postinstall on the master"
exit
1
fi
This diff is collapsed.
Click to expand it.
postinstall.sh
100755 → 100644
+
2
−
37
View file @
3acab8ba
#!/bin/bash
#!/bin/bash
git pull
# Copyright (C) 2018 Tetras Libre <Contact@Tetras-Libre.fr>
`
dirname
$0
`
/do_postinstall.sh
# Author: Beniamine, David <David.Beniamine@Tetras-Libre.fr>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
if
[
`
whoami
`
!=
"root"
]
then
echo
"This script should be run as root"
exit
1
fi
if
[
!
-z
"
`
which lxc-ls
`
"
]
then
DIR
=
`
dirname
$0
`
for
ctn
in
partage reseau
do
echo
"Running post install for
$ctn
"
scp postinstall_
$ctn
.sh
$ctn
:.
ssh
$ctn
./postinstall_
$ctn
.sh
ssh
$ctn
rm
postinstall_
$ctn
.sh
done
else
echo
"Please run postinstall on the master"
exit
1
fi
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