Due to a feature/bug in getopt, calling plexupdate.sh with concatenated
options (e.g. `plexupdate.sh -cq`), causes an error even though modern
versions of getopt have support for that format. The culprit seems to be
the "getopt compatibility mode". With these changes, a modern
implementation of getopt will work correctly with more complex options,
while old versions will continue to work as they currently do (requiring
multiple options to be given independently e.g. `plexupdate.sh -c -q`)
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