allow cgroups

This commit is contained in:
olli 2024-11-25 17:06:56 +01:00
parent 5d6e1b291c
commit de1669274b

View File

@ -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