From de1669274baedadff1e420a3b43298f61209454e Mon Sep 17 00:00:00 2001 From: olli <> Date: Mon, 25 Nov 2024 17:06:56 +0100 Subject: [PATCH] allow cgroups --- docker.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docker.yml b/docker.yml index bd8c61b..0f56c57 100644 --- a/docker.yml +++ b/docker.yml @@ -150,7 +150,17 @@ chmod 440 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 validate: /bin/bash -n %s