|
|
@ -18,20 +18,20 @@ else
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
last=130
|
|
|
|
last=130
|
|
|
|
if [[ ! "$VERSION" == "$INSTALLED " ]]; then
|
|
|
|
if [[ "$VERSION" != "$INSTALLED " ]]; then
|
|
|
|
echo "Upgradeing from version: $INSTALLED to version: $VERSION"
|
|
|
|
echo "Upgradeing 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 "http://downloads.plexapp.com/plex-media-server/$VERSION/plexmediaserver_${VERSION}_amd64.deb"
|
|
|
|
wget -P /tmp "http://downloads.plexapp.com/plex-media-server/$VERSION/plexmediaserver_${VERSION}_amd64.deb"
|
|
|
|
last=$?
|
|
|
|
last=$?
|
|
|
|
cp /defaults/plexmediaserver /etc/default/plexmediaserver
|
|
|
|
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
cp -v /defaults/plexmediaserver /etc/default/plexmediaserver
|
|
|
|
|
|
|
|
apt-get remove --purge -y plexmediaserver
|
|
|
|
|
|
|
|
gdebi -n /tmp/plexmediaserver_${VERSION}_amd64.deb
|
|
|
|
else
|
|
|
|
else
|
|
|
|
echo "Allready Uptodate"
|
|
|
|
echo "Allready Uptodate"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
apt-get remove --purge -y plexmediaserver
|
|
|
|
|
|
|
|
gdebi -n /tmp/plexmediaserver_${VERSION}_amd64.deb
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|