From c149c5c42ef249240fdc2466c63dea90756a8818 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 28 Apr 2016 13:27:46 +0200 Subject: [PATCH] use xenial repository if installing on 16.04 --- vm/pandora_install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vm/pandora_install.sh b/vm/pandora_install.sh index 916cc842..c908b1b9 100755 --- a/vm/pandora_install.sh +++ b/vm/pandora_install.sh @@ -6,17 +6,17 @@ getent passwd $PANDORA > /dev/null 2>&1 || adduser --disabled-password --gecos " LXC=`grep -q lxc /proc/1/environ && echo 'yes' || echo 'no'` if [ -e /etc/os-release ]; then . /etc/os-release -else - ID=unknown fi -UBUNTU_VERSION="$VERSION_ID" if [ -d "/run/systemd/system/" ]; then SYSTEMD="yes" else SYSTEMD="no" fi +if [ -z "$UBUNTU_CODENAME" ]; then + UBUNTU_CODENAME=trusty +fi export DEBIAN_FRONTEND=noninteractive -echo "deb http://ppa.launchpad.net/j/pandora/ubuntu trusty main" > /etc/apt/sources.list.d/j-pandora.list +echo "deb http://ppa.launchpad.net/j/pandora/ubuntu ${UBUNTU_CODENAME} main" > /etc/apt/sources.list.d/j-pandora.list apt-key add - <