Commit 167137db by Edward Zarecor

Trusty fix.

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