Plex : télécharger les mises à jour automatiquement
Aller à la navigation
Aller à la recherche
#! /bin/bash target="https://plex.tv/downloads" w3m -dump $target 2>/dev/null > /root/plexupdate/tmp/plex_downloads.html latest_version=`grep -C 3 "Ubuntu" /root/plexupdate/tmp/plex_downloads.html | grep Version | cut -d" " -f6` echo "Latest version is $latest_version" current_version=`dpkg -s plexmediaserver | grep Version: | cut -d" " -f2` echo "Current version is $current_version" if [ ! "$latest_version" == "$current_version" ]; then echo "downloading new plex version $latest_version!" wget -q https://downloads.plex.tv/plex-media-server/"$latest_version"/plexmediaserver_"$latest_version"_amd64.deb fi