Add HOTIO container support

Thanks to @causefx and @sittingmongoose.
This commit is contained in:
ChuckPa 2023-01-07 20:07:20 -05:00
parent 6b675bc2b3
commit 28cc96e32f
No known key found for this signature in database
GPG Key ID: 3CE28A0F6BC31B5B
2 changed files with 23 additions and 8 deletions

View File

@ -395,11 +395,10 @@ HostConfig() {
HostType="ASUSTOR"
return 0
# Docker
# Docker
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
PLEX_SQLITE="/usr/lib/plexmediaserver/Plex SQLite"
@ -424,6 +423,19 @@ HostConfig() {
HostType="BINHEX"
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

View File

@ -34,7 +34,7 @@ It is a simple menu-driven utility with a command line backend.
1. Apple (MacOS)
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
5. Netgear (OS5 Linux-based systems)
6. QNAP (QTS & QuTS)
@ -84,7 +84,7 @@ It is a simple menu-driven utility with a command line backend.
./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
@ -96,15 +96,18 @@ It is a simple menu-driven utility with a command line backend.
--or--
# Stop Plex in binhex containers
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
cd PlexDBRepair-0.6.1
chmod +x DBRepair.sh
./DBRepair.sh
```
### To launch from the command line
### To launch from the command line on Linux
```
sudo bash
systemctl stop plexmediaserver
@ -115,7 +118,7 @@ It is a simple menu-driven utility with a command line backend.
./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"'
cd ~/Downloads