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