1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/sh
lxc_ppa="ubuntu-lxc/lxc-stable"
if ! grep -q $lxc_ppa /etc/apt/sources.list /etc/apt/sources.list.d/* ; then
add-apt-repository -y ppa:$lxc_ppa
fi
apt-get update
apt-get upgrade -y
if ! grep -Fxq "lxc.include = /usr/share/lxc/config/nesting.conf" /etc/lxc/default.conf ; then
echo "lxc.include = /usr/share/lxc/config/nesting.conf" >> /etc/lxc/default.conf
fi
if ! grep -Fxq "lxc.hook.autodev = /usr/share/lxc/hooks/tty0-autodev" /etc/lxc/default.conf ; then
echo "lxc.hook.autodev = /usr/share/lxc/hooks/tty0-autodev" >> /etc/lxc/default.conf
fi
|