diff --git a/DBRepair.sh b/DBRepair.sh index 5e607f9..033a950 100755 --- a/DBRepair.sh +++ b/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 diff --git a/README.md b/README.md index 2abb662..ac2da04 100644 --- a/README.md +++ b/README.md @@ -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