Hotfix: Turbulence generation fix in k-omega-SST. Thijs Gillebaart
[foam-extend-3.2.git] / vagrantSandbox / initCentOSRHELScript.sh
blob909b4b7e3c54f1308ba416f2d6a0fb58c4b0e7c0
1 #! /bin/bash
3 boxName=$1
5 echo
6 echo "Init script for $boxName"
7 echo
9 echo "Install the EPEL-repository for additional software"
11 if [ "$boxName" == "centos70" ]
12 then
13 echo "Centos 7"
14 rpm -Uhv http://mirror.digitalnova.at/epel/7/x86_64/e/epel-release-7-2.noarch.rpm
15 else
16 echo "Centos 6"
17 rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
20 # some of these packages are already installed. But lets be sure
22 neededPackages=(gcc-c++ gcc-gfortran mercurial git flex bison make ccache rpm-build wget zlib-devel binutils-devel libXt-devel cmake)
23 bonusPackages=(emacs csh tcsh zsh)
25 for p in ${neededPackages[@]}; do
26 yum install -y $p
27 done
29 for p in ${bonusPackages[@]}; do
30 yum install -y $p
31 done
33 if [ "$boxName" == "centos65" ]
34 then
35 echo "Update mercurial to a more recent version"
36 rpm -Uhv http://pkgs.repoforge.org/mercurial/mercurial-2.2.2-1.el6.rfx.x86_64.rpm
39 echo
40 echo "RHEL/CentOS-specific ended. Now doing general stuff"
41 echo
43 /vagrant/initGeneralScript.sh
45 echo
46 echo "Ended"