Correct cgroups v2 issue

Corrected an issue with Cgroups V2 detection.
This commit is contained in:
ChuckPa 2022-12-26 21:39:16 -05:00
parent 94a7718b2b
commit 8e59eded28
No known key found for this signature in database
GPG Key ID: 3CE28A0F6BC31B5B

View File

@ -396,8 +396,11 @@ HostConfig() {
return 0
# Docker
elif [ "$(grep docker /proc/1/cgroup | wc -l)" -gt 0 ] || [ "$(grep 0::/ /proc/1/cgroup)" = "0::/" ]; then
# Docker (All main docker variants except binhex)
elif [ "$(grep docker /proc/1/cgroup | wc -l)" -gt 0 ] && [ -d "/config/Library/Application Support" ]; then
if [ -d "/config/Library/Application Support" ]; then
PLEX_SQLITE="/usr/lib/plexmediaserver/Plex SQLite"
AppSuppDir="/config/Library/Application Support"
@ -410,7 +413,7 @@ HostConfig() {
return 0
# BINHEX Plex container
elif [ "$(grep docker /proc/1/cgroup | wc -l)" -gt 0 ] && [ -d "/config/Plex Media Server" ]; then
elif [ -d "/config/Plex Media Server" ]; then
PLEX_SQLITE="/usr/lib/plexmediaserver/Plex SQLite"
AppSuppDir="/config"
@ -421,6 +424,8 @@ HostConfig() {
HostType="BINHEX"
return 0
fi
# Western Digital (OS5)
elif [ -f /etc/system.conf ] && [ -d /mnt/HD/HD_a2/Nas_Prog/plexmediaserver ] && \