move config copy to AFTER the install

pull/8/head
Stian Buch Larsen 9 years ago
parent 75a8b8dd61
commit e96227c9cc

@ -25,9 +25,9 @@ if [[ "$VERSION" != "$INSTALLED " ]]; then
wget -P /tmp "http://downloads.plexapp.com/plex-media-server/$VERSION/plexmediaserver_${VERSION}_amd64.deb"
last=$?
done
cp -v /defaults/plexmediaserver /etc/default/plexmediaserver
apt-get remove --purge -y plexmediaserver
gdebi -n /tmp/plexmediaserver_${VERSION}_amd64.deb
cp -v /defaults/plexmediaserver /etc/default/plexmediaserver
else
echo "Allready Uptodate"
fi

Loading…
Cancel
Save