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

Force switch to eole-amon-ecole-2.8 branch on containers post installs

parent 6b9840f5
Branches
Tags
No related merge requests found
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment