diff --git a/postinstall_partage.sh b/postinstall_partage.sh index b2c7b6372919aa1db5b015fc6134cd0ff84a9975..668c3120cb5175f5a2a47bb5a8e23f4c1972c4db 100755 --- a/postinstall_partage.sh +++ b/postinstall_partage.sh @@ -17,6 +17,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. cd /opt +branch=eole-amon-ecole-2.8 if [ "$(dpkg -l | grep git)" ] then @@ -29,13 +30,13 @@ then fi if [ ! -e "eole-wol" ] then - git clone https://gitecoles.grenoble.fr/grenoble/eole-wol + git clone -b $branch https://gitecoles.grenoble.fr/grenoble/eole-wol cd eole-wol else cd eole-wol git stash - git checkout master - git pull origin master + git switch $branch + git pull origin $branch fi DIR=$PWD diff --git a/postinstall_reseau.sh b/postinstall_reseau.sh index f818a345c170abde739c2b5d762285e0005a8b30..2a526a971021b2f013f6b80010896c4d1444905e 100755 --- a/postinstall_reseau.sh +++ b/postinstall_reseau.sh @@ -17,6 +17,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. cd /var/www +branch=eole-amon-ecole-2.8 if [ "$(dpkg -l | grep git)" ] then @@ -27,12 +28,12 @@ then fi if [ ! -e "eole-wol" ] then - git clone https://gitecoles.grenoble.fr/grenoble/eole-wol + git clone -b $branch https://gitecoles.grenoble.fr/grenoble/eole-wol else cd eole-wol git stash - git checkout master - git pull origin master + git switch $branch + git pull origin $branch cd - fi