mirror of
https://github.com/ChuckPa/PlexDBRepair.git
synced 2025-11-06 11:18:54 -05:00
Update DBRepair.sh
This commit is contained in:
parent
36288ae365
commit
94abffcb86
11
DBRepair.sh
11
DBRepair.sh
@ -572,17 +572,18 @@ HostConfig() {
|
|||||||
[ "$(grep libpod /proc/1/cgroup | wc -l)" -gt 0 ]; then
|
[ "$(grep libpod /proc/1/cgroup | wc -l)" -gt 0 ]; then
|
||||||
|
|
||||||
# HOTIO Plex image 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 "/usr/lib/plexmediaserver" ]) && [ -d "/config/Plug-in Support" ]; then
|
||||||
PLEX_SQLITE="/app/usr/lib/plexmediaserver/Plex SQLite"
|
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"
|
AppSuppDir="/config"
|
||||||
PID_FILE="$AppSuppDir/plexmediaserver.pid"
|
PID_FILE="$AppSuppDir/plexmediaserver.pid"
|
||||||
DBDIR="$AppSuppDir/Plug-in Support/Databases"
|
DBDIR="$AppSuppDir/Plug-in Support/Databases"
|
||||||
LOGFILE="$DBDIR/DBRepair.log"
|
LOGFILE="$DBDIR/DBRepair.log"
|
||||||
LOG_TOOL="logger"
|
LOG_TOOL="logger"
|
||||||
if [ -d /run/service/plex ]; then
|
if [ -d "/run/service/plex" ] || [ -d "/run/service/service-plex" ]; then
|
||||||
|
SERVICE_PATH=$([ -d "/run/service/plex" ] && echo "/run/service/plex" || [ -d "/run/service/service-plex" ] && echo "/run/service/service-plex")
|
||||||
HaveStartStop=1
|
HaveStartStop=1
|
||||||
StartCommand="s6-svc -u /run/service/service-plex"
|
StartCommand="s6-svc -u $SERVICE_PATH"
|
||||||
StopCommand="s6-svc -d /run/service/service-plex"
|
StopCommand="s6-svc -d $SERVICE_PATH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
HostType="HOTIO"
|
HostType="HOTIO"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user