append to fstab correctly
This commit is contained in:
parent
8cfd8b6cf2
commit
c315ebfde6
2
stack.sh
2
stack.sh
@ -320,7 +320,7 @@ if [[ "$ENABLED_SERVICES" =~ "n-cpu" ]]; then
|
|||||||
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
|
||||||
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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user