vm/firstboot.sh should work on 12.04 and 14.04

This commit is contained in:
j 2014-08-10 17:05:23 +02:00
parent f6939ff08e
commit 83c3490568

View file

@ -4,7 +4,8 @@ LXC=`grep -q lxc /proc/1/environ && echo 'yes' || echo 'no'`
export DEBIAN_FRONTEND=noninteractive export DEBIAN_FRONTEND=noninteractive
apt-get install -y \ apt-get install -y \
update-manager-core \ 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 add-apt-repository -y ppa:j/pandora
apt-get update apt-get update
@ -14,6 +15,12 @@ apt-get install -y \
ntp ntp
fi fi
if [[ `lsb_release -sr` == "12.04" ]]; then
LIBAVCODEC_EXTRA=libavcodec-extra-53
else
LIBAVCODEC_EXTRA=libavcodec-extra
fi
apt-get install -y \ apt-get install -y \
openssh-server \ openssh-server \
vim \ vim \
@ -42,7 +49,7 @@ apt-get install -y \
gstreamer0.10-plugins-good \ gstreamer0.10-plugins-good \
gstreamer0.10-plugins-bad \ gstreamer0.10-plugins-bad \
oxframe \ oxframe \
libavcodec-extra-53 \ $LIBAVCODEC_EXTRA \
libav-tools \ libav-tools \
ffmpeg2theora \ ffmpeg2theora \
mkvtoolnix \ mkvtoolnix \