mirror of
https://github.com/ChuckPa/PlexDBRepair.git
synced 2026-02-12 14:06:11 -06:00
Merge pull request #167 from ChuckPa/chuckpa/Manual-config-flag
ManualConfig flag not set with --sqlite option
This commit is contained in:
@@ -2,12 +2,12 @@
|
|||||||
#########################################################################
|
#########################################################################
|
||||||
# Plex Media Server database check and repair utility script. #
|
# Plex Media Server database check and repair utility script. #
|
||||||
# Maintainer: ChuckPa #
|
# Maintainer: ChuckPa #
|
||||||
# Version: v1.07.00 #
|
# Version: v1.07.01 #
|
||||||
# Date: 14-Jun-2024 #
|
# Date: 01-Jul-2024 #
|
||||||
#########################################################################
|
#########################################################################
|
||||||
|
|
||||||
# Version for display purposes
|
# Version for display purposes
|
||||||
Version="v1.07.00"
|
Version="v1.07.01"
|
||||||
|
|
||||||
# Have the databases passed integrity checks
|
# Have the databases passed integrity checks
|
||||||
CheckedDB=0
|
CheckedDB=0
|
||||||
@@ -1676,6 +1676,7 @@ do
|
|||||||
# Or is it the direct path to Plex SQLite
|
# Or is it the direct path to Plex SQLite
|
||||||
elif echo "$2" | grep "Plex SQLite" > /dev/null && [ -f "$2" ] ; then
|
elif echo "$2" | grep "Plex SQLite" > /dev/null && [ -f "$2" ] ; then
|
||||||
PLEX_SQLITE="$2"
|
PLEX_SQLITE="$2"
|
||||||
|
ManualConfig=1
|
||||||
|
|
||||||
else
|
else
|
||||||
Output "Given 'Plex SQLite' directory/path ('$2') is invalid. Aborting."
|
Output "Given 'Plex SQLite' directory/path ('$2') is invalid. Aborting."
|
||||||
@@ -1697,7 +1698,6 @@ do
|
|||||||
LOGFILE="$DBDIR/DBRepair.log"
|
LOGFILE="$DBDIR/DBRepair.log"
|
||||||
ManualConfig=1
|
ManualConfig=1
|
||||||
|
|
||||||
|
|
||||||
else
|
else
|
||||||
Output "Given Plex databases directory ('$2') is invalid. Aborting."
|
Output "Given Plex databases directory ('$2') is invalid. Aborting."
|
||||||
exit 2
|
exit 2
|
||||||
|
|||||||
Reference in New Issue
Block a user