allow cgroups
This commit is contained in:
parent
5d6e1b291c
commit
de1669274b
12
docker.yml
12
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
|
||||
|
Loading…
Reference in New Issue
Block a user