Skip to content

Commit 195b77f

Browse files
committed
Handle updates above 0.9.4
-Corrected matching http or https for download link -recreate soft links in downloaded folder -capturing the output of service plexmedia start with LogMsg was causing script to hang so LogMsg has been removed on this line for now.
1 parent 746dce9 commit 195b77f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

PMS_Updater.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ findLatest()
144144

145145
webGet "$URL" || exit $?
146146
echo Searching $URL for $PMSPATTERN ..... | LogMsg -n
147-
DOWNLOADURL=`grep -o "http[s]:.*$PMSPATTERN" "$DOWNLOADPATH/$SCRAPEFILE"`
147+
DOWNLOADURL=`grep -o "http[s]*:.*$PMSPATTERN" "$DOWNLOADPATH/$SCRAPEFILE"`
148148
if [ "x$DOWNLOADURL" = "x" ]; then {
149149
# DOWNLOADURL is zero length, i.e. nothing matched PMSPATTERN. Error and exit
150150
echo Could not find a $PMSPATTERN download link on page $URL | LogMsg -f
@@ -189,8 +189,10 @@ applyUpdate()
189189
} else {
190190
echo Done. | LogMsg -f
191191
} fi
192+
ln -s $PMSPARENTPATH/$PMSLIVEFOLDER/Plex\ Media\ Server $PMSPARENTPATH/$PMSLIVEFOLDER/Plex_Media_Server 2>&1 | LogMsg
193+
ln -s $PMSPARENTPATH/$PMSLIVEFOLDER/libpython2.7.so.1 $PMSPARENTPATH/$PMSLIVEFOLDER/libpython2.7.so 2>&1 | LogMsg
192194
echo Starting Plex Media Server .....| LogMsg -n
193-
service plexmediaserver start 2>&1 | LogMsg
195+
service plexmediaserver start
194196
echo Done. | LogMsg -f
195197
}
196198

0 commit comments

Comments
 (0)