From 75a8b8dd61be9c4a2c940563a9cbd96a3152eb8a Mon Sep 17 00:00:00 2001 From: Stian Buch Larsen Date: Fri, 28 Aug 2015 13:59:01 +0200 Subject: [PATCH] Stupid lonix --- init/20_update_plex.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/init/20_update_plex.sh b/init/20_update_plex.sh index 30e0033..0fb1a3c 100644 --- a/init/20_update_plex.sh +++ b/init/20_update_plex.sh @@ -18,20 +18,20 @@ else fi last=130 -if [[ ! "$VERSION" == "$INSTALLED " ]]; then +if [[ "$VERSION" != "$INSTALLED " ]]; then echo "Upgradeing from version: $INSTALLED to version: $VERSION" while [[ $last -ne "0" ]]; do rm -f /tmp/plexmediaserver_*.deb wget -P /tmp "http://downloads.plexapp.com/plex-media-server/$VERSION/plexmediaserver_${VERSION}_amd64.deb" last=$? - cp /defaults/plexmediaserver /etc/default/plexmediaserver done + cp -v /defaults/plexmediaserver /etc/default/plexmediaserver + apt-get remove --purge -y plexmediaserver + gdebi -n /tmp/plexmediaserver_${VERSION}_amd64.deb else echo "Allready Uptodate" fi -apt-get remove --purge -y plexmediaserver -gdebi -n /tmp/plexmediaserver_${VERSION}_amd64.deb