4 Commits

Author SHA1 Message Date
Chuck
b0aaf2b3e2 Merge pull request #282 from ChuckPa/chuckpa/v1.15.01
Correct documentation.
2026-04-18 15:51:33 -04:00
Chuck
14d044a8f2 Correct documentation. 2026-04-18 15:48:33 -04:00
Chuck
bd5c4693a1 Merge pull request #275 from ChuckPa/chuckpa/dsm6-start
v1.15.0

1.  Fix long-standing DSM 6 start/stop problem (sorry)
2.  Begin groundwork for better Username/Permissions handling in restrictive environments like DSM.
2026-03-02 23:31:09 -05:00
ChuckPa
63c96bd910 v1.15.0
1.  Fix long-standing DSM 6 start/stop problem
2.  Begin work on addressing edge ownership/perms problems on
     Synology.   May help others as well.
2026-03-02 23:23:02 -05:00
3 changed files with 41 additions and 15 deletions

View File

@@ -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

View File

@@ -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.

View File

@@ -8,6 +8,15 @@
![Maintenance](https://img.shields.io/badge/Maintained-Yes-green.svg)
# 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.