allow cgroups
This commit is contained in:
parent
5d6e1b291c
commit
de1669274b
10
docker.yml
10
docker.yml
@ -152,6 +152,16 @@
|
|||||||
chown root:docker envroot.db env.rootphpmyadmin
|
chown root:docker envroot.db env.rootphpmyadmin
|
||||||
sed -i "s/\!MYSQLPASSWORD\!/$mysqlpassword/g" envroot.db env.rootphpmyadmin
|
sed -i "s/\!MYSQLPASSWORD\!/$mysqlpassword/g" envroot.db env.rootphpmyadmin
|
||||||
|
|
||||||
|
# if raspberry allow cgroups on next reboot
|
||||||
|
if [ -s /boot/firmware/cmdline.txt ]
|
||||||
|
then
|
||||||
|
if ! grep -q cgroup_ /boot/firmware/cmdline.txt
|
||||||
|
then
|
||||||
|
cmdline="$(cat /boot/firmware/cmdline.txt) cgroup_memory=1 cgroup_enable=cpuset"
|
||||||
|
echo "$cmdline" >/boot/firmware/cmdline.txt
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
backup: yes
|
backup: yes
|
||||||
validate: /bin/bash -n %s
|
validate: /bin/bash -n %s
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user