mirror of
https://github.com/ChuckPa/PlexDBRepair.git
synced 2025-11-06 03:08:55 -05:00
Add HOTIO container support
Thanks to @causefx and @sittingmongoose.
This commit is contained in:
parent
6b675bc2b3
commit
28cc96e32f
18
DBRepair.sh
18
DBRepair.sh
@ -395,11 +395,10 @@ HostConfig() {
|
|||||||
HostType="ASUSTOR"
|
HostType="ASUSTOR"
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
# Docker
|
||||||
# Docker
|
|
||||||
elif [ "$(grep docker /proc/1/cgroup | wc -l)" -gt 0 ] || [ "$(grep 0::/ /proc/1/cgroup)" = "0::/" ]; then
|
elif [ "$(grep docker /proc/1/cgroup | wc -l)" -gt 0 ] || [ "$(grep 0::/ /proc/1/cgroup)" = "0::/" ]; then
|
||||||
|
|
||||||
# Docker (All main docker variants except binhex)
|
# Docker (All main docker variants except binhex and hotio)
|
||||||
if [ -d "/config/Library/Application Support" ]; then
|
if [ -d "/config/Library/Application Support" ]; then
|
||||||
|
|
||||||
PLEX_SQLITE="/usr/lib/plexmediaserver/Plex SQLite"
|
PLEX_SQLITE="/usr/lib/plexmediaserver/Plex SQLite"
|
||||||
@ -424,6 +423,19 @@ HostConfig() {
|
|||||||
|
|
||||||
HostType="BINHEX"
|
HostType="BINHEX"
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
# HOTIO Plex container
|
||||||
|
elif [ -d "/config/Plug-in Support" ]; then
|
||||||
|
PLEX_SQLITE="/app/usr/lib/plexmediaserver/Plex SQLite"
|
||||||
|
AppSuppDir="/config"
|
||||||
|
PID_FILE="$AppSuppDir/plexmediaserver.pid"
|
||||||
|
DBDIR="$AppSuppDir/Plug-in Support/Databases"
|
||||||
|
LOGFILE="$DBDIR/DBRepair.log"
|
||||||
|
LOG_TOOL="logger"
|
||||||
|
|
||||||
|
HostType="HOTIO"
|
||||||
|
return 0
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
13
README.md
13
README.md
@ -34,7 +34,7 @@ It is a simple menu-driven utility with a command line backend.
|
|||||||
|
|
||||||
1. Apple (MacOS)
|
1. Apple (MacOS)
|
||||||
2. ASUSTOR
|
2. ASUSTOR
|
||||||
3. Docker (Plex,inc, Linuxserver.io, & BinHex via 'docker exec')
|
3. Docker (Plex,inc, Linuxserver.io, BinHex & HOTIO via 'docker exec')
|
||||||
4. Linux workstation & server
|
4. Linux workstation & server
|
||||||
5. Netgear (OS5 Linux-based systems)
|
5. Netgear (OS5 Linux-based systems)
|
||||||
6. QNAP (QTS & QuTS)
|
6. QNAP (QTS & QuTS)
|
||||||
@ -84,7 +84,7 @@ It is a simple menu-driven utility with a command line backend.
|
|||||||
./DBRepair.sh
|
./DBRepair.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
### To launch in a Docker container:
|
### To launch from the commaand line inside a Docker container:
|
||||||
```
|
```
|
||||||
sudo docker exec -it plex /bin/bash
|
sudo docker exec -it plex /bin/bash
|
||||||
|
|
||||||
@ -96,15 +96,18 @@ It is a simple menu-driven utility with a command line backend.
|
|||||||
--or--
|
--or--
|
||||||
# Stop Plex in binhex containers
|
# Stop Plex in binhex containers
|
||||||
kill -15 $(pidof 'Plex Media Server')
|
kill -15 $(pidof 'Plex Media Server')
|
||||||
|
--or--
|
||||||
|
# Stop Plex in HOTIO containers
|
||||||
|
s6-svc -d /run/service/plex
|
||||||
|
|
||||||
|
|
||||||
|
# extract from downloaded version file name then cd into directory
|
||||||
tar xf PlexDBRepair-0.6.1.tar.gz
|
tar xf PlexDBRepair-0.6.1.tar.gz
|
||||||
cd PlexDBRepair-0.6.1
|
cd PlexDBRepair-0.6.1
|
||||||
chmod +x DBRepair.sh
|
chmod +x DBRepair.sh
|
||||||
./DBRepair.sh
|
./DBRepair.sh
|
||||||
```
|
```
|
||||||
### To launch from the command line
|
### To launch from the command line on Linux
|
||||||
```
|
```
|
||||||
sudo bash
|
sudo bash
|
||||||
systemctl stop plexmediaserver
|
systemctl stop plexmediaserver
|
||||||
@ -115,7 +118,7 @@ It is a simple menu-driven utility with a command line backend.
|
|||||||
./DBRepair.sh
|
./DBRepair.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
### To launch in MacOS (on the administrator account)
|
### To launch from the command line on MacOS (on the administrator account)
|
||||||
```
|
```
|
||||||
osascript -e 'quit app "Plex Media Server"'
|
osascript -e 'quit app "Plex Media Server"'
|
||||||
cd ~/Downloads
|
cd ~/Downloads
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user