diff --git a/install.sh b/install.sh index 268c24a2b7d..bf5f3f80f69 100755 --- a/install.sh +++ b/install.sh @@ -1112,8 +1112,7 @@ has_working_xtables() { # --- startup systemd or openrc service --- service_enable_and_start() { - if [ -f "/proc/cgroups" ] && [ "$(grep memory /proc/cgroups | while read -r n n n enabled; do echo $enabled; done)" -eq 0 ]; - then + if ! grep -qs memory /sys/fs/cgroup/cgroup.controllers && ! [ "$(grep -s memory /proc/cgroups | while read -r n n n enabled; do echo $enabled; done)" == "0" ]; then info 'Failed to find memory cgroup, you may need to add "cgroup_memory=1 cgroup_enable=memory" to your linux cmdline (/boot/cmdline.txt on a Raspberry Pi)' fi diff --git a/install.sh.sha256sum b/install.sh.sha256sum index aac57954754..9d969c3d15b 100644 --- a/install.sh.sha256sum +++ b/install.sh.sha256sum @@ -1 +1 @@ -b0715fb49a4a1d32241ac23c222a1d343baa1f2846f25032b306d1b30dbacd15 install.sh +b699722c5ce5896781fd0373f7c5de57555c5121cd1c6014d27afa56d98f5c53 install.sh