Skip to content
Snippets Groups Projects
Verified Commit bbc612f1 authored by David Beniamine's avatar David Beniamine
Browse files

Switch to lametros repositories

parent 296c5fd6
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,7 @@ apt-eole install \ ...@@ -28,7 +28,7 @@ apt-eole install \
wakeonlan wakeonlan
if [ ! -e "eole-wol" ] if [ ! -e "eole-wol" ]
then then
git clone https://gitlab.tetras-libre.fr/tetras-libre/eole-wol git clone https://gitecoles.grenoble.fr/grenoble/eole-wol
cd eole-wol cd eole-wol
else else
cd eole-wol cd eole-wol
......
...@@ -26,7 +26,7 @@ apt-eole install \ ...@@ -26,7 +26,7 @@ apt-eole install \
xrdp xrdp
if [ ! -e "eole-wol" ] if [ ! -e "eole-wol" ]
then then
git clone https://gitlab.tetras-libre.fr/tetras-libre/eole-wol git clone https://gitecoles.grenoble.fr/grenoble/eole-wol
else else
cd eole-wol cd eole-wol
git pull git pull
......
#!/bin/bash
DIR=`dirname $0`
cd $DIR
new_repository_url="https://gitecoles.grenoble.fr/grenoble/eole-wol"
if [ ! -z "`git remote -v | awk '/tetras-libre/{print $2}'`" ]
then
git remote set-url origin $new_repository_url
fi
cd -
...@@ -28,6 +28,10 @@ runcmd(){ ...@@ -28,6 +28,10 @@ runcmd(){
ssh -o StrictHostKeychecking=no root@$host $@ ssh -o StrictHostKeychecking=no root@$host $@
} }
# Switch to lametros repository
DIR=`dirname $0`
$DIR/update_repository.sh
conf_dir="/etc/registry" conf_dir="/etc/registry"
conf_file="$conf_dir/hosts" conf_file="$conf_dir/hosts"
broadcast=$(ip a | awk '/inet.*eth1/ {print $4}' | cut -d / -f 1) broadcast=$(ip a | awk '/inet.*eth1/ {print $4}' | cut -d / -f 1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment