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
6361ee49
Verified
Commit
6361ee49
authored
6 years ago
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
Deploy script for
#2
parent
eff5ff4e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
postinstall.sh
+39
-0
39 additions, 0 deletions
postinstall.sh
postinstall_partage.sh
+36
-0
36 additions, 0 deletions
postinstall_partage.sh
postinstall_reseau.sh
+27
-0
27 additions, 0 deletions
postinstall_reseau.sh
with
102 additions
and
0 deletions
postinstall.sh
0 → 100755
+
39
−
0
View file @
6361ee49
#!/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_partage.sh
0 → 100755
+
36
−
0
View file @
6361ee49
#!/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/>.
cd
/opt
apt-get update
apt-get
install
-y
git
git clone https://gitlab.tetras-libre.fr/tetras-libre/eole-wol
cd
eole-wol
cp
*
/service/
*
.service /etc/systemd/system/
# Adding services
systemctl daemon-reload
for
service
in
wakeonlan registry
do
systemctl start
$service
systemctl status
$service
systemctl
enable
$service
done
This diff is collapsed.
Click to expand it.
postinstall_reseau.sh
0 → 100755
+
27
−
0
View file @
6361ee49
#!/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/>.
cd
/var/www
apt-get update
apt-get
install
-y
git
git clone https://gitlab.tetras-libre.fr/tetras-libre/eole-wol
chown
-R
www-data:www-data eole-wol/wol/www
# TODO : should I add a ligne to apache2 config ?
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