KEEP option is deprecated because of the new TOKEN scheme used by plex.tv
If you used KEEP=yes in the past, you would never get PlexPass unless the
cookie file was lost. Since I don't track validity of token, it's better
to remove keep completely.
Also added support to avoid auto install if server is in-use
(thanks @AltonV, @hakong and @sufr3ak for the tip)
To enable the new feature, please set PLEXSERVER to the IP or DNS of your
Plex Media Server (typically 127.0.0.1)
The fixes#59
You can now specify a different file than ~/.plexupdate
It now also tries to handle sudo better in respect to the location
of this file.
This closes#38
Old -C cronmode is deprecated and will cause an error message
New -c essentially converts any non-fatal error to success
Combined with -q you will only get messages if something goes wrong.
This closes#65
Automatically detects 32 or 64 bit systems and the new
-l option will allow you to easily see what options you
have when defining BUILD and DISTRO.
Also improved error messages.
If you used RELEASE= in the settings file, the change to link
detection will cause issues, this new version will warn AND
change it back to something useful.
Seems like some versions of wget will happily ask for a localized
version of the webpage, causing the processing to fail.
Now we look for something which remains static regardless of
langauge.
running the script via sudo, kept returning the 'run as root' error.
Reason: id returned 'UID=0(root) GID=0(root) groepen=0(root)', while the lower case version was expected
The script never should get to the point of trying to restart a reinstalled service if it wasn't installed with sudo, but it's a good idea to have this check regardless.
Changed AUTOSTART to [-s], which makes more sense.
Added RedHat/CentOS warning to suggest using -s
Cleaned AUTOSTART segment and added a warning when this option is being used but may not be needed.
What's more, in newer versions of fedora (and eventually in redhat/centos) yum is superceded by dnf, which doesn't have the localinstall option. It only supports install. Yum in these versions passes all commands on to dnf, so using yum localinstall in these versions throws an error. Because older versions of yum allow install to do localinstalls, this seems like the best middle ground.