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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
primtux-eole
Grenoble
eole-wol
Commits
480d64c6
Verified
Commit
480d64c6
authored
5 years ago
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
Upgrade script fix
#18
parent
4da3ec1e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
postinstall_partage.sh
+14
-9
14 additions, 9 deletions
postinstall_partage.sh
postinstall_reseau.sh
+10
-5
10 additions, 5 deletions
postinstall_reseau.sh
upgrade_all.sh
+3
-0
3 additions, 0 deletions
upgrade_all.sh
with
27 additions
and
14 deletions
postinstall_partage.sh
+
14
−
9
View file @
480d64c6
...
...
@@ -16,23 +16,28 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
DIR
=
$(
dirname
$0
)
DIR
=
$(
realpath
$(
dirname
$0
)
)
cd
/opt
apt-eole update
apt-eole
install
\
git
\
printer-driver-splix
\
hplip
\
wakeonlan
if
[
"
$(
dpkg
-l
|
grep
git
)
"
]
then
apt-eole update
apt-eole
install
\
git
\
printer-driver-splix
\
hplip
\
wakeonlan
fi
if
[
!
-e
"eole-wol"
]
then
git clone https://gitecoles.grenoble.fr/grenoble/eole-wol
cd
eole-wol
else
cd
eole-wol
git pull
git stash
git checkout master
git pull origin master
fi
cp
$DIR
/
*
/service/
*
.service /etc/systemd/system/
...
...
@@ -52,7 +57,7 @@ done
# Add registry clean to cronab
line
=
"0 1 1 * *
$DIR
/registry/scripts/clean.sh > /dev/null 2>&1"
(
crontab
-l
;
echo
"
${
line
}
"
)
| crontab -
(
crontab
-l
|
grep
-v
"registry"
;
echo
"
${
line
}
"
)
| crontab -
# Copy ssh key to tftp
while
[
!
-e
"/root/.ssh/id_rsa.pub"
]
...
...
This diff is collapsed.
Click to expand it.
postinstall_reseau.sh
+
10
−
5
View file @
480d64c6
...
...
@@ -20,16 +20,21 @@ DIR=$(dirname $0)
cd
/var/www
apt-eole update
apt-eole
install
\
git
\
xrdp
if
[
"
$(
dpkg
-l
|
grep
git
)
"
]
then
apt-eole update
apt-eole
install
\
git
\
xrdp
fi
if
[
!
-e
"eole-wol"
]
then
git clone https://gitecoles.grenoble.fr/grenoble/eole-wol
else
cd
eole-wol
git pull
git stash
git checkout master
git pull origin master
cd
-
fi
...
...
This diff is collapsed.
Click to expand it.
upgrade_all.sh
0 → 100755
+
3
−
0
View file @
480d64c6
#!/bin/bash
git pull
`
dirname
$0
`
/do_postinstall.sh
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