Add Podman (libpod) container support

This commit is contained in:
ChuckPa 2023-01-11 18:25:38 -05:00
parent d2f8de489f
commit 672c493c7e
No known key found for this signature in database
GPG Key ID: 3CE28A0F6BC31B5B

View File

@ -395,10 +395,13 @@ HostConfig() {
HostType="ASUSTOR" HostType="ASUSTOR"
return 0 return 0
# Docker # Containers:
elif [ "$(grep docker /proc/1/cgroup | wc -l)" -gt 0 ] || [ "$(grep 0::/ /proc/1/cgroup)" = "0::/" ]; then # - Docker cgroup v1 & v2
# - Podman (libpod)
elif [ "$(grep docker /proc/1/cgroup | wc -l)" -gt 0 ] || [ "$(grep 0::/ /proc/1/cgroup)" = "0::/" ] ||
[ "$(grep libpod /proc/1/cgroup | wc -l)" -gt 0 ]; then
# HOTIO Plex container structure is non-standard (contains symlink which breaks detection) # HOTIO Plex image structure is non-standard (contains symlink which breaks detection)
if [ -d "/app/usr/lib/plexmediaserver" ] && [ -d "/config/Plug-in Support" ]; then if [ -d "/app/usr/lib/plexmediaserver" ] && [ -d "/config/Plug-in Support" ]; then
PLEX_SQLITE="/app/usr/lib/plexmediaserver/Plex SQLite" PLEX_SQLITE="/app/usr/lib/plexmediaserver/Plex SQLite"
AppSuppDir="/config" AppSuppDir="/config"
@ -410,7 +413,7 @@ HostConfig() {
HostType="HOTIO" HostType="HOTIO"
return 0 return 0
# Docker (All main docker variants except binhex and hotio) # Docker (All main image variants except binhex and hotio)
elif [ -d "/config/Library/Application Support" ]; then elif [ -d "/config/Library/Application Support" ]; then
PLEX_SQLITE="/usr/lib/plexmediaserver/Plex SQLite" PLEX_SQLITE="/usr/lib/plexmediaserver/Plex SQLite"
@ -423,7 +426,7 @@ HostConfig() {
HostType="Docker" HostType="Docker"
return 0 return 0
# BINHEX Plex container # BINHEX Plex image
elif [ -d "/config/Plex Media Server" ]; then elif [ -d "/config/Plex Media Server" ]; then
PLEX_SQLITE="/usr/lib/plexmediaserver/Plex SQLite" PLEX_SQLITE="/usr/lib/plexmediaserver/Plex SQLite"