mirror of
https://github.com/ChuckPa/PlexDBRepair.git
synced 2026-02-11 21:55:50 -06:00
Compare commits
4 Commits
36288ae365
...
4d8fa8058c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4d8fa8058c | ||
|
|
2c863f41a1 | ||
|
|
8924a304d1 | ||
|
|
94abffcb86 |
17
DBRepair.sh
17
DBRepair.sh
@@ -2,12 +2,12 @@
|
||||
#########################################################################
|
||||
# Plex Media Server database check and repair utility script. #
|
||||
# Maintainer: ChuckPa #
|
||||
# Version: v1.0.12 #
|
||||
# Date: 30-Aug-2023 #
|
||||
# Version: v1.0.13 #
|
||||
# Date: 23-Sep-2023 #
|
||||
#########################################################################
|
||||
|
||||
# Version for display purposes
|
||||
Version="v1.0.12"
|
||||
Version="v1.0.13"
|
||||
|
||||
# Flag when temp files are to be retained
|
||||
Retain=0
|
||||
@@ -572,17 +572,18 @@ 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 "/config/Plug-in Support" ]; then
|
||||
PLEX_SQLITE="/app/usr/lib/plexmediaserver/Plex SQLite"
|
||||
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"
|
||||
DBDIR="$AppSuppDir/Plug-in Support/Databases"
|
||||
LOGFILE="$DBDIR/DBRepair.log"
|
||||
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
|
||||
StartCommand="s6-svc -u /run/service/service-plex"
|
||||
StopCommand="s6-svc -d /run/service/service-plex"
|
||||
StartCommand="s6-svc -u $SERVICE_PATH"
|
||||
StopCommand="s6-svc -d $SERVICE_PATH"
|
||||
fi
|
||||
|
||||
HostType="HOTIO"
|
||||
|
||||
@@ -9,6 +9,10 @@
|
||||
|
||||
# Release Info:
|
||||
|
||||
v1.0.13
|
||||
|
||||
- Improve HOTIO support. Allow both older and newer directory structure
|
||||
|
||||
v1.0.12
|
||||
|
||||
- Update HOTIO start/stop commands (re: #404461a)
|
||||
|
||||
Reference in New Issue
Block a user