append to fstab correctly

This commit is contained in:
Jesse Andrews 2011-10-02 13:25:33 -04:00
parent 8cfd8b6cf2
commit c315ebfde6

View file

@ -320,7 +320,7 @@ if [[ "$ENABLED_SERVICES" =~ "n-cpu" ]]; then
sudo mkdir -p /cgroup
sudo mount none -t cgroup -o cpuacct,memory,devices,cpu,freezer,blkio /cgroup
if ! grep -q cgroup /etc/fstab; then
sudo echo none /cgroup cgroup cpuacct,memory,devices,cpu,freezer,blkio 0 0 >> /etc/fstab
echo none /cgroup cgroup cpuacct,memory,devices,cpu,freezer,blkio 0 0 | sudo tee -a /etc/fstab
fi
fi