From 8924a304d14dbae3ba6f9ff1e4bb43b3b8daf5dc Mon Sep 17 00:00:00 2001 From: causefx Date: Mon, 18 Sep 2023 20:37:07 -0700 Subject: [PATCH] fix first if statement --- DBRepair.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DBRepair.sh b/DBRepair.sh index a41dffe..5861a14 100755 --- a/DBRepair.sh +++ b/DBRepair.sh @@ -572,7 +572,7 @@ HostConfig() { [ "$(grep libpod /proc/1/cgroup | wc -l)" -gt 0 ]; then # HOTIO Plex image structure is non-standard (contains symlink which breaks detection) - if ([ -d "/app/usr/lib/plexmediaserver" ] || [ -d "/usr/lib/plexmediaserver" ]) && [ -d "/config/Plug-in Support" ]; then + if [ -n "$(grep -irslm 1 hotio /etc/s6-overlay/s6-rc.d)" ]; then PLEX_SQLITE=$(find /app/usr/lib/plexmediaserver /usr/lib/plexmediaserver -maxdepth 0 -type d -print -quit 2>/dev/null); PLEX_SQLITE="$PLEX_SQLITE/Plex SQLite" AppSuppDir="/config" PID_FILE="$AppSuppDir/plexmediaserver.pid"