mirror of
https://github.com/ChuckPa/PlexDBRepair.git
synced 2026-04-21 18:49:17 -04:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b0aaf2b3e2 | ||
|
|
14d044a8f2 | ||
|
|
bd5c4693a1 | ||
|
|
63c96bd910 |
30
DBRepair.sh
30
DBRepair.sh
@@ -2,12 +2,12 @@
|
||||
#########################################################################
|
||||
# Database Repair Utility for Plex Media Server. #
|
||||
# Maintainer: ChuckPa #
|
||||
# Version: v1.14.00 #
|
||||
# Date: 24-Jan-2026 #
|
||||
# Version: v1.15.00 #
|
||||
# Date: 02-Mar-2026 #
|
||||
#########################################################################
|
||||
|
||||
# Version for display purposes
|
||||
Version="v1.14.00"
|
||||
Version="v1.15.00"
|
||||
|
||||
# Have the databases passed integrity checks
|
||||
CheckedDB=0
|
||||
@@ -29,6 +29,10 @@ RemoveDuplicates=0
|
||||
# Keep track of how many times the user's hit enter with no command (implied EOF)
|
||||
NullCommands=0
|
||||
|
||||
# Default (Preset) user and group for certain environments
|
||||
DefaultUser=""
|
||||
DefaultGroup=""
|
||||
|
||||
# Default TMP dir for most hosts
|
||||
TMPDIR="/tmp"
|
||||
SYSTMP="/tmp"
|
||||
@@ -487,6 +491,11 @@ HostConfig() {
|
||||
if [ -d /var/packages/PlexMediaServer ] && \
|
||||
[ -d "/var/packages/PlexMediaServer/shares/PlexMediaServer/AppData/Plex Media Server" ]; then
|
||||
|
||||
# Who are we
|
||||
DefaultUser="PlexMediaServer"
|
||||
DefaultGroup="PlexMediaServer"
|
||||
Owner="${DefaultUser}:${DefaultGroup}"
|
||||
|
||||
# Where is the software
|
||||
PKGDIR="/var/packages/PlexMediaServer/target"
|
||||
PLEX_SQLITE="$PKGDIR/Plex SQLite"
|
||||
@@ -514,6 +523,11 @@ HostConfig() {
|
||||
elif [ -d "/var/packages/Plex Media Server" ] && \
|
||||
[ -f "/usr/syno/sbin/synoshare" ]; then
|
||||
|
||||
# Who are we
|
||||
DefaultUser="Plex"
|
||||
DefaultGroup="users"
|
||||
Owner="${DefaultUser}:${DefaultGroup}"
|
||||
|
||||
# Where is the software
|
||||
PKGDIR="/var/packages/Plex Media Server/target"
|
||||
PLEX_SQLITE="$PKGDIR/Plex SQLite"
|
||||
@@ -537,8 +551,14 @@ HostConfig() {
|
||||
|
||||
# We do have start/stop as root
|
||||
HaveStartStop=1
|
||||
StartCommand="/usr/syno/bin/synopkg start PlexMediaServer"
|
||||
StopCommand="/usr/syno/bin/synopkg stop PlexMediaServer"
|
||||
SynoStart="'/var/packages/Plex Media Server/scripts/start-stop-status' start"
|
||||
SynoStop="'/var/packages/Plex Media Server/scripts/start-stop-status' stop"
|
||||
|
||||
# We do have start/stop as root
|
||||
HaveStartStop=1
|
||||
StartCommand="eval $SynoStart"
|
||||
StopCommand="eval $SynoStop"
|
||||
|
||||
return 0
|
||||
fi
|
||||
|
||||
|
||||
17
README.md
17
README.md
@@ -291,19 +291,16 @@ Special considerations:
|
||||
4. The Logfile ('show' command) shows all actions performed WITH timestamp so you can locate
|
||||
intermediate databases if desired for special / manual recovery cases.
|
||||
|
||||
Attention:
|
||||
|
||||
The behavior of command "99" is different than command "Exit"
|
||||
This is intentional.
|
||||
|
||||
"99" is the "Get out now, Keep all intermediate/temp files.
|
||||
-- This is for when DB operations keep getting worse and you don't know what to do.
|
||||
"99" is an old 'Get Smart' TV series reference where agent 99 would try to save agent 86 from harm.
|
||||
|
||||
Community feedback has resulted in:
|
||||
|
||||
"98" or "Quit" - Get out now without deleting the temp databases (Usually
|
||||
used only during unexpected failures)
|
||||
"99" or "Exit" - Preferred way to exit and cleanup temp databases
|
||||
"98" or "Quit" - Get out now without deleting the temp databases (Usually used only during unexpected failures)
|
||||
|
||||
Notice:
|
||||
If command line EOF is encountered before Exit/Quit command received,
|
||||
DBRepair will quit and KEEP all temporary files.
|
||||
|
||||
|
||||
Also please be aware the script understands interactive versus scripted mode.
|
||||
|
||||
|
||||
@@ -8,6 +8,15 @@
|
||||

|
||||
|
||||
# Release Info:
|
||||
v1.15.00
|
||||
|
||||
1. DSM 6 Start/Stop - Change how DSM 6 start/stop feature implemented
|
||||
This accounts for changes in DSM 6.
|
||||
|
||||
2. Permissions/Owner - Some DSM users experience permission errors after running DBRepair
|
||||
on Synology. Begin implementation of more robust handling for
|
||||
restricted environments like DSM.
|
||||
|
||||
v1.14.00
|
||||
|
||||
1. Full-Text Search - Check and repair Full-Text Search (FTS) database indexes.
|
||||
|
||||
Reference in New Issue
Block a user