Skip to content

Commit

Permalink
Merge pull request #9 from 007revad/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
007revad authored Jul 2, 2024
2 parents fccd44d + 426aae6 commit 035f02e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v1.0.3
- Bug fix for failing to start Plex Media Server. Issue #8
- Fixed in Linux_Plex_Backup.sh
- Fixed in Restore_Linux_Plex_Backup.sh

v1.0.2
- Added working restore script.

Expand Down
10 changes: 7 additions & 3 deletions Linux_Plex_Backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# shellcheck disable=SC2317,SC2181
#--------------------------------------------------------------------------
# Backup Linux Plex Database to tgz file in Backup folder.
# v1.0.2 08-May-2024 007revad
# v1.0.3 02-Jul-2024 007revad
#
# MUST be run by a user in sudo, sudoers or wheel group, or as root
#
Expand All @@ -18,7 +18,7 @@
# Script verified at https://www.shellcheck.net/
#--------------------------------------------------------------------------

scriptver="v1.0.2"
scriptver="v1.0.3"
script=Linux_Plex_Backup


Expand Down Expand Up @@ -386,7 +386,11 @@ echo "=================================================" |& tee -a "${Log_File}"
# Start Plex Media Server

echo "Starting Plex..." |& tee -a "${Log_File}"
/usr/lib/plexmediaserver/Resources/start.sh
if cd /usr/lib/plexmediaserver; then
./Resources/start.sh
else
echo "Failed start Plex!"
fi


#--------------------------------------------------------------------------
Expand Down
10 changes: 7 additions & 3 deletions Restore_Linux_Plex_Backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# shellcheck disable=SC2317,SC2181
#--------------------------------------------------------------------------
# Companion script for Linux Plex Backup script.
# v1.0.2 10-Apr-2024 007revad
# v1.0.3 02-Jul-2024 007revad
#
# MUST be run by a user in sudo, sudoers or wheel group, or as root
#
Expand All @@ -14,7 +14,7 @@
# Script verified at https://www.shellcheck.net/
#--------------------------------------------------------------------------

scriptver="v1.0.2"
scriptver="v1.0.3"
script=Restore_Linux_Plex_Backup


Expand Down Expand Up @@ -346,7 +346,11 @@ echo "=================================================" |& tee -a "${Log_File}"
# Start Plex Media Server

echo "Starting Plex..." |& tee -a "${Log_File}"
/usr/lib/plexmediaserver/Resources/start.sh
if cd /usr/lib/plexmediaserver; then
./Resources/start.sh
else
echo "Failed start Plex!"
fi


#--------------------------------------------------------------------------
Expand Down

0 comments on commit 035f02e

Please sign in to comment.