From 83c3490568656bcb659da6d61fff4ed73dfab3b2 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 10 Aug 2014 17:05:23 +0200 Subject: [PATCH] vm/firstboot.sh should work on 12.04 and 14.04 --- vm/firstboot.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/vm/firstboot.sh b/vm/firstboot.sh index 5958239f..ad80109a 100755 --- a/vm/firstboot.sh +++ b/vm/firstboot.sh @@ -4,7 +4,8 @@ LXC=`grep -q lxc /proc/1/environ && echo 'yes' || echo 'no'` export DEBIAN_FRONTEND=noninteractive apt-get install -y \ update-manager-core \ - python-software-properties + software-properties-common +[[ `lsb_release -sr` == "12.04" ]] && apt-get install -y python-software-properties add-apt-repository -y ppa:j/pandora apt-get update @@ -14,6 +15,12 @@ apt-get install -y \ ntp fi +if [[ `lsb_release -sr` == "12.04" ]]; then + LIBAVCODEC_EXTRA=libavcodec-extra-53 +else + LIBAVCODEC_EXTRA=libavcodec-extra +fi + apt-get install -y \ openssh-server \ vim \ @@ -42,7 +49,7 @@ apt-get install -y \ gstreamer0.10-plugins-good \ gstreamer0.10-plugins-bad \ oxframe \ - libavcodec-extra-53 \ + $LIBAVCODEC_EXTRA \ libav-tools \ ffmpeg2theora \ mkvtoolnix \