Fix typos / spelling
This commit is contained in:
parent
e9346d9909
commit
34873a1fa7
1 changed files with 5 additions and 5 deletions
|
|
@ -1,24 +1,24 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
#The following error is not a error.
|
#The following error is not an error.
|
||||||
INSTALLED=$(dpkg-query -W -f='${Version}' plexmediaserver)
|
INSTALLED=$(dpkg-query -W -f='${Version}' plexmediaserver)
|
||||||
|
|
||||||
[ "$PLEXPASS" ] && echo "PLEXPASS is deprecated, please use VERSION"
|
[ "$PLEXPASS" ] && echo "PLEXPASS is deprecated, please use VERSION"
|
||||||
|
|
||||||
if [[ -z $VERSION && "$PLEXPASS" == "1" || $VERSION = "plexpass" ]]; then
|
if [[ -z $VERSION && "$PLEXPASS" == "1" || $VERSION = "plexpass" ]]; then
|
||||||
VERSION=$(curl -s https://tools.linuxserver.io/latest-plexpass.json | grep "version" | cut -d '"' -f 4)
|
VERSION=$(curl -s https://tools.linuxserver.io/latest-plexpass.json | grep "version" | cut -d '"' -f 4)
|
||||||
echo "Useing version: $VERSION from Plexpass latest"
|
echo "Using version: $VERSION from Plexpass latest"
|
||||||
elif [[ $VERSION = "latest" || -z $VERSION ]]; then
|
elif [[ $VERSION = "latest" || -z $VERSION ]]; then
|
||||||
VERSION=$(curl -s https://tools.linuxserver.io/latest-plex.json| grep "version" | cut -d '"' -f 4)
|
VERSION=$(curl -s https://tools.linuxserver.io/latest-plex.json| grep "version" | cut -d '"' -f 4)
|
||||||
echo "Useing version: $VERSION from Public latest"
|
echo "Using version: $VERSION from Public latest"
|
||||||
else
|
else
|
||||||
echo "Useing version: $VERSION from Manual"
|
echo "Using version: $VERSION from Manual"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
last=130
|
last=130
|
||||||
if [[ "$VERSION" != "$INSTALLED" ]]; then
|
if [[ "$VERSION" != "$INSTALLED" ]]; then
|
||||||
echo "Upgradeing from version: $INSTALLED to version: $VERSION"
|
echo "Upgrading from version: $INSTALLED to version: $VERSION"
|
||||||
while [[ $last -ne "0" ]]; do
|
while [[ $last -ne "0" ]]; do
|
||||||
rm -f /tmp/plexmediaserver_*.deb
|
rm -f /tmp/plexmediaserver_*.deb
|
||||||
wget -P /tmp "https://downloads.plex.tv/plex-media-server/$VERSION/plexmediaserver_${VERSION}_amd64.deb"
|
wget -P /tmp "https://downloads.plex.tv/plex-media-server/$VERSION/plexmediaserver_${VERSION}_amd64.deb"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue