mirror of
https://github.com/ChuckPa/PlexDBRepair.git
synced 2026-07-30 18:43:52 -05:00
Merge pull request #287 from ChuckPa/chuckpa/MacOS-application-dir
v1.16.00 MacOS - Add support for either /Applications or $HOME/Applications package locations
This commit is contained in:
+15
-4
@@ -701,13 +701,23 @@ HostConfig() {
|
||||
HostType="ASUSTOR"
|
||||
return 0
|
||||
|
||||
|
||||
# Apple Mac
|
||||
elif [ -d "/Applications/Plex Media Server.app" ] && \
|
||||
[ -d "$HOME/Library/Application Support/Plex Media Server" ]; then
|
||||
elif [ "$(uname)" = "Darwin" ] && [ -d "$HOME/Library/Application Support/Plex Media Server" ]; then
|
||||
|
||||
# Determine where the application bundle is installed
|
||||
if [ -d "/Applications/Plex Media Server.app" ]; then
|
||||
PkgDir="/Applications/Plex Media Server.app"
|
||||
elif [ -d "$HOME/Applications/Plex Media Server.app" ]; then
|
||||
PkgDir="$HOME/Applications/Plex Media Server.app"
|
||||
else
|
||||
# It is a Mac, but the .app bundle cannot be found
|
||||
PkgDir=""
|
||||
fi
|
||||
|
||||
# Only proceed if we successfully located PkgDir
|
||||
if [ -n "$PkgDir" ]; then
|
||||
# Where is the software
|
||||
PLEX_SQLITE="/Applications/Plex Media Server.app/Contents/MacOS/Plex SQLite"
|
||||
PLEX_SQLITE="${PkgDir}/Contents/MacOS/Plex SQLite"
|
||||
AppSuppDir="$HOME/Library/Application Support"
|
||||
DBDIR="$AppSuppDir/Plex Media Server/Plug-in Support/Databases"
|
||||
CACHEDIR="$HOME/Library/Caches/PlexMediaServer/PhotoTranscoder"
|
||||
@@ -733,6 +743,7 @@ HostConfig() {
|
||||
|
||||
HostType="Mac"
|
||||
return 0
|
||||
fi
|
||||
|
||||
# FreeBSD 14+
|
||||
elif [ -e /etc/os-release ] && [ "$(cat /etc/os-release | grep FreeBSD)" != "" ]; then
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
[](https://github.com/ChuckPa/DBRepair/releases)
|
||||
[]('')
|
||||

|
||||
[](https://github.com/sponsors/ChuckPa)
|
||||
|
||||
|
||||
DBRepair is run from a command line (terminal or ssh/putty session) which has sufficient privilege to read/write the databases (minimum).
|
||||
|
||||
@@ -7,7 +7,14 @@
|
||||
[]('')
|
||||

|
||||
|
||||
|
||||
|
||||
# Release Info:
|
||||
v1.16.00
|
||||
|
||||
1. MacOS App Dir - Older MacOS systems use /Applications. Newer MacOS systems use $HOME/Applications.
|
||||
DBRepair now detects this and supports both locations.
|
||||
|
||||
v1.15.00
|
||||
|
||||
1. DSM 6 Start/Stop - Change how DSM 6 start/stop feature implemented
|
||||
|
||||
Reference in New Issue
Block a user