From bbc612f1b81f55bf19e9c00b00d8e7de11c17f2c Mon Sep 17 00:00:00 2001 From: David Beniamine <david.beniamine@tetras-libre.fr> Date: Mon, 28 Jan 2019 16:54:28 +0100 Subject: [PATCH] Switch to lametros repositories --- postinstall_partage.sh | 2 +- postinstall_reseau.sh | 2 +- registry/scripts/update_repository.sh | 9 +++++++++ registry/scripts/upgrade_all.sh | 4 ++++ 4 files changed, 15 insertions(+), 2 deletions(-) create mode 100755 registry/scripts/update_repository.sh diff --git a/postinstall_partage.sh b/postinstall_partage.sh index b93ff0a..ba2e767 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 f34fc33..7111c74 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 0000000..2c6bad2 --- /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 c5f5928..4da61b7 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) -- GitLab