Skip to content

Commit

Permalink
Merge pull request #10 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 035f02e + 9a0bc79 commit 9f81c51
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
2 changes: 1 addition & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
v1.0.3
v1.0.4
- Bug fix for failing to start Plex Media Server. Issue #8
- Fixed in Linux_Plex_Backup.sh
- Fixed in Restore_Linux_Plex_Backup.sh
Expand Down
10 changes: 3 additions & 7 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.3 02-Jul-2024 007revad
# v1.0.4 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.3"
scriptver="v1.0.4"
script=Linux_Plex_Backup


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

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


#--------------------------------------------------------------------------
Expand Down
10 changes: 3 additions & 7 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.3 02-Jul-2024 007revad
# v1.0.4 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.3"
scriptver="v1.0.4"
script=Restore_Linux_Plex_Backup


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

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


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

0 comments on commit 9f81c51

Please sign in to comment.