Skip to content

Commit 9f81c51

Browse files
authored
Merge pull request #10 from 007revad/develop
Develop
2 parents 035f02e + 9a0bc79 commit 9f81c51

3 files changed

Lines changed: 7 additions & 15 deletions

File tree

CHANGES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
v1.0.3
1+
v1.0.4
22
- Bug fix for failing to start Plex Media Server. Issue #8
33
- Fixed in Linux_Plex_Backup.sh
44
- Fixed in Restore_Linux_Plex_Backup.sh

Linux_Plex_Backup.sh

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# shellcheck disable=SC2317,SC2181
33
#--------------------------------------------------------------------------
44
# Backup Linux Plex Database to tgz file in Backup folder.
5-
# v1.0.3 02-Jul-2024 007revad
5+
# v1.0.4 02-Jul-2024 007revad
66
#
77
# MUST be run by a user in sudo, sudoers or wheel group, or as root
88
#
@@ -18,7 +18,7 @@
1818
# Script verified at https://www.shellcheck.net/
1919
#--------------------------------------------------------------------------
2020

21-
scriptver="v1.0.3"
21+
scriptver="v1.0.4"
2222
script=Linux_Plex_Backup
2323

2424

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

388388
echo "Starting Plex..." |& tee -a "${Log_File}"
389-
if cd /usr/lib/plexmediaserver; then
390-
./Resources/start.sh
391-
else
392-
echo "Failed start Plex!"
393-
fi
389+
systemctl start plexmediaserver
394390

395391

396392
#--------------------------------------------------------------------------

Restore_Linux_Plex_Backup.sh

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# shellcheck disable=SC2317,SC2181
33
#--------------------------------------------------------------------------
44
# Companion script for Linux Plex Backup script.
5-
# v1.0.3 02-Jul-2024 007revad
5+
# v1.0.4 02-Jul-2024 007revad
66
#
77
# MUST be run by a user in sudo, sudoers or wheel group, or as root
88
#
@@ -14,7 +14,7 @@
1414
# Script verified at https://www.shellcheck.net/
1515
#--------------------------------------------------------------------------
1616

17-
scriptver="v1.0.3"
17+
scriptver="v1.0.4"
1818
script=Restore_Linux_Plex_Backup
1919

2020

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

348348
echo "Starting Plex..." |& tee -a "${Log_File}"
349-
if cd /usr/lib/plexmediaserver; then
350-
./Resources/start.sh
351-
else
352-
echo "Failed start Plex!"
353-
fi
349+
systemctl start plexmediaserver
354350

355351

356352
#--------------------------------------------------------------------------

0 commit comments

Comments
 (0)