WD (OS 5) support

Add support for WD (OS 5)  systems
This commit is contained in:
ChuckPa 2022-10-28 13:17:31 -04:00
parent dbcbd76f83
commit 4a7664b160
No known key found for this signature in database
GPG Key ID: 3CE28A0F6BC31B5B
2 changed files with 19 additions and 2 deletions

View File

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

View File

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