diff --git a/postinstall_partage.sh b/postinstall_partage.sh index b93ff0a579a351efbb9f27db89144eeabdfd4a6c..ba2e767fcea7f314310b4c068b6b5090366d3150 100755 --- a/postinstall_partage.sh +++ b/postinstall_partage.sh @@ -28,7 +28,7 @@ apt-eole install \ wakeonlan if [ ! -e "eole-wol" ] then - git clone https://gitlab.tetras-libre.fr/tetras-libre/eole-wol + git clone https://gitecoles.grenoble.fr/grenoble/eole-wol cd eole-wol else cd eole-wol diff --git a/postinstall_reseau.sh b/postinstall_reseau.sh index f34fc3367329a3157141e8d7488c0cef7e195834..7111c74279b7c6b5b778b11f627fffab732f75d7 100755 --- a/postinstall_reseau.sh +++ b/postinstall_reseau.sh @@ -26,7 +26,7 @@ apt-eole install \ xrdp if [ ! -e "eole-wol" ] then - git clone https://gitlab.tetras-libre.fr/tetras-libre/eole-wol + git clone https://gitecoles.grenoble.fr/grenoble/eole-wol else cd eole-wol git pull diff --git a/registry/scripts/update_repository.sh b/registry/scripts/update_repository.sh new file mode 100755 index 0000000000000000000000000000000000000000..2c6bad2ecb1e199c479c38555d21fd4fe0dd5776 --- /dev/null +++ b/registry/scripts/update_repository.sh @@ -0,0 +1,9 @@ +#!/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 - diff --git a/registry/scripts/upgrade_all.sh b/registry/scripts/upgrade_all.sh index c5f592896f049fa9e2eed6c9c9f62c6735019bcb..4da61b7ae10182f77087e01f9ae0649ac846258f 100755 --- a/registry/scripts/upgrade_all.sh +++ b/registry/scripts/upgrade_all.sh @@ -28,6 +28,10 @@ runcmd(){ ssh -o StrictHostKeychecking=no root@$host $@ } +# Switch to lametros repository +DIR=`dirname $0` +$DIR/update_repository.sh + conf_dir="/etc/registry" conf_file="$conf_dir/hosts" broadcast=$(ip a | awk '/inet.*eth1/ {print $4}' | cut -d / -f 1)