Commit a6aaae1e by Ned Batchelder

Xenial support

parent 3ac6bab9
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
## ##
## Sanity check ## Sanity check
## ##
if [[ `lsb_release -rs` != "12.04" ]]; then if [[ `lsb_release -rs` != "16.04" ]]; then
echo "This script is only known to work on Ubuntu 12.04, exiting..."; echo "This script is only known to work on Ubuntu 16.04, exiting...";
exit; exit;
fi fi
...@@ -31,18 +31,12 @@ sudo apt-get upgrade -y ...@@ -31,18 +31,12 @@ sudo apt-get upgrade -y
## ##
## Install system pre-requisites ## Install system pre-requisites
## ##
sudo apt-get install -y build-essential software-properties-common curl git-core libxml2-dev libxslt1-dev python-pip libmysqlclient-dev python-apt python-dev libxmlsec1-dev libfreetype6-dev swig gcc-4.8 g++-4.8 sudo apt-get install -y build-essential software-properties-common curl git-core libxml2-dev libxslt1-dev python-pip libmysqlclient-dev python-apt python-dev libxmlsec1-dev libfreetype6-dev swig gcc g++
sudo pip install --upgrade pip==8.1.2 sudo pip install --upgrade pip==8.1.2
sudo pip install --upgrade setuptools==24.0.3 sudo pip install --upgrade setuptools==24.0.3
sudo -H pip install --upgrade virtualenv==15.0.2 sudo -H pip install --upgrade virtualenv==15.0.2
## ##
## Update alternatives so that gcc/g++ 4.8 is the default compiler
##
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 50
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 50
##
## Overridable version variables in the playbooks. Each can be overridden ## Overridable version variables in the playbooks. Each can be overridden
## individually, or with $OPENEDX_RELEASE. ## individually, or with $OPENEDX_RELEASE.
## ##
...@@ -78,6 +72,7 @@ cd /var/tmp ...@@ -78,6 +72,7 @@ cd /var/tmp
git clone https://github.com/edx/configuration git clone https://github.com/edx/configuration
cd configuration cd configuration
git checkout $CONFIGURATION_VERSION git checkout $CONFIGURATION_VERSION
git pull
## ##
## Install the ansible requirements ## Install the ansible requirements
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment