Correct missing variable initialization

Restart after update had missing default value.
This commit is contained in:
ChuckPa 2025-06-22 16:03:17 -04:00
parent 93886de20f
commit 2264ee89be
No known key found for this signature in database
GPG Key ID: 38D684FFA607AF70
2 changed files with 12 additions and 5 deletions

View File

@ -2,12 +2,12 @@
#########################################################################
# Database Repair Utility for Plex Media Server. #
# Maintainer: ChuckPa #
# Version: v1.11.05 #
# Date: 05-Jun-2025 #
# Version: v1.11.06 #
# Date: 22-Jun-2025 #
#########################################################################
# Version for display purposes
Version="v1.11.05"
Version="v1.11.06"
# Have the databases passed integrity checks
CheckedDB=0
@ -65,6 +65,9 @@ DFFLAGS="-m"
# If LC_ALL is null, default to C
[ "$LC_ALL" = "" ] && export LC_ALL=C
# Check Restart
[ "$DBRepairRestartedAfterUpdate" = "" ] && DBRepairRestartedAfterUpdate=0
# Universal output function
Output() {
if [ $Scripted -gt 0 ]; then
@ -2314,7 +2317,7 @@ do
88|upda*)
# Don't update again after restarting after updating
if [ "$DBRepairRestartedAfterUpdate" = "1" ]; then
if [ $DBRepairRestartedAfterUpdate -eq 1 ]; then
Output "Already updated. Continuing."
WriteLog "Update - Ignore Update request after updating."
continue
@ -2344,7 +2347,7 @@ do
if [ $Scripted -eq 0 ] && ConfirmYesNo "Restart and use $LatestVersion ?" ; then
WriteLog "Restarting after upgrade"
Output "Restarting"
export DBRepairRestartedAfterUpdate="1"
export DBRepairRestartedAfterUpdate=1
exec "$0" "$@"
else
Output "Restart to launch updated DBRepair.sh ($LatestVersion)"

View File

@ -8,6 +8,10 @@
![Maintenance](https://img.shields.io/badge/Maintained-Yes-green.svg)
# Release Info:
v1.11.06
1. Restart after update - Correct missing variable initialization.
v1.11.05
1. Remove menu option - Deflate menu option wasn't previously removed. Now removed.