Commit 167137db by Edward Zarecor

Trusty fix.

parent dd866924
......@@ -59,12 +59,18 @@ CONFIGURATION_VERSION="${CONFIGURATION_VERSION}"
EOF
if [[ $(id -u) -ne 0 ]] ; then
if [[ $(id -u) -ne 0 ]] ;then
echo "Please run as root";
exit 1;
fi
if ! grep -q -e 'Precise Pangolin' -e 'Trusty Tahr' /etc/os-release; then
if grep -q 'Precise Pangolin'
then
SHORT_DIST="precise"
elif grep -q 'Trusty Tahr' /etc/os-release
then
SHORT_DIST="trusty"
else
cat << EOF
This script is only known to work on Ubuntu Precise and Trusty,
......@@ -75,6 +81,8 @@ EOF
exit 1;
fi
EDX_PPA="deb http://ppa.edx.org ${SHORT_DIST} main"
# Upgrade the OS
apt-get update -y
apt-key update -y
......
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