apt-get needs sudo'd

This commit is contained in:
Jesse Andrews 2011-10-02 13:17:31 -04:00
parent c6d3042e06
commit 8cfd8b6cf2

View File

@ -316,7 +316,7 @@ if [[ "$ENABLED_SERVICES" =~ "n-cpu" ]]; then
fi fi
if [[ "$LIBVIRT_TYPE" -eq "lxc" ]]; then if [[ "$LIBVIRT_TYPE" -eq "lxc" ]]; then
apt-get install lxc -y sudo apt-get install lxc -y
sudo mkdir -p /cgroup sudo mkdir -p /cgroup
sudo mount none -t cgroup -o cpuacct,memory,devices,cpu,freezer,blkio /cgroup sudo mount none -t cgroup -o cpuacct,memory,devices,cpu,freezer,blkio /cgroup
if ! grep -q cgroup /etc/fstab; then if ! grep -q cgroup /etc/fstab; then