Skip to content

Commit

Permalink
v1.07.00
Browse files Browse the repository at this point in the history
1.  Add MacOS start/stop functionality from menu.
2.  Cleanup & dead code removal
  • Loading branch information
ChuckPa committed Jun 14, 2024
1 parent 4f5b5ab commit 9156206
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
9 changes: 5 additions & 4 deletions DBRepair.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
#########################################################################
# Plex Media Server database check and repair utility script. #
# Maintainer: ChuckPa #
# Version: v1.06.02 #
# Date: 11-May-2024 #
# Version: v1.07.00 #
# Date: 14-Jun-2024 #
#########################################################################

# Version for display purposes
Version="v1.06.02"
Version="v1.07.00"

# Have the databases passed integrity checks
CheckedDB=0
Expand Down Expand Up @@ -985,10 +985,11 @@ DoRepair() {
fi

# Inform user
Output "Successfully exported the main and blobs databases. Proceeding to import into new databases."
Output "Successfully exported the main and blobs databases."
WriteLog "Repair - Export databases - PASS"

# Library and blobs successfully exported, create new
Output "Start importing into new databases."
Output "Importing Main DB."
DoSetPageSize "$TMPDIR/$CPPL.db-REPAIR-$TimeStamp"
"$PLEX_SQLITE" "$TMPDIR/$CPPL.db-REPAIR-$TimeStamp" < "$TMPDIR/library.plexapp.sql-$TimeStamp"
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -949,11 +949,11 @@ Enter command # -or- command name (4 char min) :
# This script grants the given syno username (your username)
# the ability to elevate to 'root' privilege for use with DBRepair.sh
#
# Set your desired Syno username here (no spaces)
MyUsername=chuck
# Set your desired Syno username here (no spaces in the username)
MyUsername="chuck"
# Confirm username exists
if [ "$(id $MyUsername)" = "" ]; then
if [ "$(id "$MyUsername")" = "" ]; then
echo ERROR: No such user \'$MyUsername\'
exit 1
fi
Expand Down
8 changes: 8 additions & 0 deletions ReleaseNotes
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@
![Maintenance](https://img.shields.io/badge/Maintained-Yes-green.svg)

# Release Info:
v1.07.00

1. Mac start/stop - DBRepair now supports start/stop from the menu.
Default configuration is for MacOS to tell you what it's doing (Haptic). Set to 0 for silence.

2. Code cleanup - Minor code cleanup / dead code removal.

v1.06.02

1. Bug fix - Fixed incorrect error handling when command line arguments not valid in manual configuration mode.
Fixed incorrect reporting of what was wrong in manual configuration mode.

Expand Down

0 comments on commit 9156206

Please sign in to comment.