mirror of
https://github.com/ChuckPa/PlexDBRepair.git
synced 2025-11-06 03:08:55 -05:00
WD (OS 5) support
Add support for WD (OS 5) systems
This commit is contained in:
parent
dbcbd76f83
commit
4a7664b160
18
DBRepair.sh
18
DBRepair.sh
@ -404,6 +404,22 @@ HostConfig() {
|
||||
|
||||
HostType="Docker"
|
||||
return 0
|
||||
|
||||
# Western Digital (OS5)
|
||||
elif [ -f /etc/system.conf ] && [ -d /mnt/HD/HD_a2/Nas_Prog/plexmediaserver ] && \
|
||||
grep "Western Digital Corp" /etc/system.conf >/dev/null; then
|
||||
|
||||
# Where things are
|
||||
PLEX_SQLITE="/mnt/HD/HD_a2/Nas_Prog/plexmediaserver/binaries/Plex SQLite"
|
||||
AppSuppDir=/mnt/HD/HD*/Nas_Prog/plex_conf
|
||||
PID_FILE="$AppSuppDir/Plex Media Server/plexmediaserver.pid"
|
||||
DBDIR="$AppSuppDir/Plex Media Server/Plug-in Support/Databases"
|
||||
LOGFILE="$DBDIR/DBRepair.log"
|
||||
LOG_TOOL="logger"
|
||||
|
||||
HostType="Western Digital"
|
||||
return 0
|
||||
|
||||
fi
|
||||
|
||||
# Unknown / currently unsupported host
|
||||
@ -433,7 +449,7 @@ SetLast "" ""
|
||||
# Identify this host
|
||||
HostType="" ; LOG_TOOL="echo"
|
||||
if ! HostConfig; then
|
||||
Output 'Error: Unknown host. Currently supported hosts are: QNAP, Synology, Netgear, ASUSTOR, and Linux Workstation/Server'
|
||||
Output 'Error: Unknown host. Currently supported hosts are: QNAP, Synology, Netgear, ASUSTOR, WD (OS5) and Linux Workstation/Server'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
|
||||
DBRepair provides database repair and maintenance for the most common Plex Media Server database problems.
|
||||
|
||||
It is a simple, command line oriented, menu-driven utility.
|
||||
It is a simple menu-driven utility with a command line backend.
|
||||
## Situations and errors commonly seen include:
|
||||
|
||||
1. Database is malformed
|
||||
@ -30,6 +30,7 @@ It is a simple, command line oriented, menu-driven utility.
|
||||
4. QNAP (QTS & QuTS)
|
||||
5. Synology (DSM 6 & DSM 7)
|
||||
6. Docker (via 'docker exec' command line)
|
||||
7. Western Digital (OS5)
|
||||
|
||||
## The menu
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user