Henric Andersson
33731698ff
Improved login process
...
Will now properly detect invalid password/username and also handle
other random errors which could happen in a more graceful way.
2016-06-27 01:09:08 -07:00
Henric Andersson
258e565ea3
Merge pull request #62 from hakong/patch-2
...
Cron mode should not exit with non-zero if up to date
2016-06-26 23:45:30 -07:00
hakong
02b3ecf726
Cron mode should not exit with non-zero if up to date
...
If plex is up to date, cron mode should exit with 0.
2016-06-26 23:25:32 +00:00
hakong
db29f8e41b
Show usage on unrecognized option
2016-06-26 23:08:52 +00:00
Henric Andersson
b50e8c68f9
Now detects 32/64 bit systems and can list BUILD/DISTRO
...
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.
2016-06-25 04:03:15 -07:00
Henric Andersson
373a147f6d
First version supporting the new format
...
Intial version supporting JSON endpoints
2016-06-24 04:21:16 -07:00
Andy Miller
54b70708c3
Merge remote-tracking branch 'upstream/master'
2016-05-04 21:30:33 -07:00
Andy Miller
27d02a94f5
add silent mode. clarify help text. clean up README.
2016-05-04 20:32:41 -07:00
Alex Malinovich
0ab9cc6ccf
Spelling is hard
2016-04-11 13:43:47 -07:00
Alex Malinovich
732b503dae
Skip email/pass sanity check if stored cookie exists
2016-04-11 11:21:12 -07:00
Alex Malinovich
76db00e42a
Fix KEEP option for plexpass users
2016-04-11 11:03:53 -07:00
Henric Andersson
5bad5cbe0f
Added control of package manager
...
Also fixed long-standing issue with KEEP not working
2016-04-11 07:47:00 -07:00
Andy Miller
d7682dc4a2
fix a stray '\n' missed during usage clean up
2016-04-10 22:04:47 -07:00
Andy Miller
7c3c2c52fc
add support for cron mode and quiet mode. clean up and organize usage.
2016-04-10 21:48:42 -07:00
joe miller
581698a351
add option -r to print the download url and exit
2016-03-19 17:15:34 -07:00
Guillaume Boudreau
ab740b9ead
Use absolute path to /sbin/service
...
Sometimes, when using sudo or cron, /sbin might not be in the user's PATH, and thus we need to specify its full path when AUTOSTARTing it.
2016-03-01 08:40:50 -05:00
Henric Andersson
2080649d80
Now detects legacy settings and converts
...
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.
2016-02-19 17:01:59 -08:00
Henric Andersson
17851c6507
Redid the release detection to be language agnostic
...
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.
2016-02-19 07:45:34 -08:00
martijndierckx
5ac1aec075
made root check case-insensitive
...
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
2016-02-13 17:08:00 +01:00
Henric Andersson
653588d43c
Auto update now handles some more obscure situations
...
Launch plexupdate using "bash plexupdate.sh" will not cause the
autoupdate function to fail anymore. Also tries to handle the error
if it would fail.
2015-11-06 08:55:56 -08:00
AltonV
fc3821150c
checking for "nothing to commit" doen't work when using another language than english
2015-11-05 15:32:54 +01:00
Andrew Parker
ee8ec46a16
This echo is displayed on Debian systems. It should only be displayed for Red Hat systems, so I moved it. It should also only be displayed if the -s switch isn't used, so I added a check for it.
2015-10-27 14:41:50 -06:00
Ian
3a8244306b
Added systemd support to AUTOSTART
2015-10-27 13:10:20 -05:00
Henric Andersson
5ef0da8489
Moved root test for autostart
...
Better to fail early than to wait until the last moment.
Also improved help text.
2015-10-25 11:43:56 -07:00
Devin Slick
51e4b693c0
Typos
...
I just corrected a few typos I noticed while I was reviewing
2015-10-25 11:12:53 -05:00
Devin Slick
4c48237be5
Clean up the if statements in AUTOSTART
2015-10-23 22:48:50 -05:00
Devin Slick
bed1a7bdef
That space has been hiding from me....
2015-10-23 22:44:02 -05:00
Devin Slick
859be63643
Update plexupdate.sh
2015-10-23 22:14:28 -05:00
Devin Slick
e2481e6442
Update plexupdate.sh
2015-10-23 22:13:11 -05:00
Devin Slick
6ccfc08bd2
Update plexupdate.sh
2015-10-23 19:58:21 -05:00
Devin Slick
e3a9c963ee
Update plexupdate.sh
2015-10-23 19:56:57 -05:00
Devin Slick
b10ecd84c3
Update plexupdate.sh
2015-10-23 19:54:56 -05:00
Devin Slick
a619b1221e
Removed then on elif
2015-10-23 19:53:36 -05:00
Devin Slick
b08b63c39e
Added check for root in AUTOSTART
...
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.
2015-10-23 19:51:39 -05:00
Devin Slick
3408308c9d
Removed redundant if, added sudo to service cmd
2015-10-23 17:58:29 -05:00
Devin Slick
9cb98c2853
Removed mistake mistake
2015-10-23 17:55:27 -05:00
Devin Slick
c2727b9485
Fixed Typo
2015-10-23 17:53:51 -05:00
Devin Slick
32b53de62a
AUTOSTART [-s] cleanup
...
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.
2015-10-23 17:46:40 -05:00
Devin Slick
d75c8c20cb
Update plexupdate.sh
2015-10-23 17:23:23 -05:00
Devin Slick
adc53be37d
Fixed AUTOSTART parameter default value
2015-10-23 17:04:54 -05:00
Devin Slick
4e91d842a1
Adding -r parameter for autostart of service
...
This will be an optional parameter that will be useful for RHEL/CentOS, and potentially other distributions.
2015-10-23 14:49:51 -05:00
Henric Andersson
104a7343d3
Added check for bash
...
Avoid issues when using wrong script engine.
2015-10-20 09:12:32 -07:00
Abe Al-Saleh
9b5cdbcc78
yum localinstall is deprecated, install will handle local files as well.
...
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.
2015-10-08 08:20:31 -04:00
Andrew Parker
c34d83d77a
Kind of nit-picky, but the part about "without trailing slash" is no longer necessary. Your logic handles with or without a trailing slash.
2015-10-01 00:16:23 -06:00
Andrew Parker
db8bebc94f
I was still getting an error because only the first space in my DOWNLOADDIR was getting replaced. Adding the other / tells the expansion to match all occurrences.
2015-09-30 23:58:58 -06:00
Henric Andersson
c280afea94
Changed method of expanding download directory
...
Found a somewhat nicer and more compatible way of expanding a path which handles ~ and spaces.
2015-09-30 12:57:01 -07:00
Henric Andersson
eef0745da8
Misunderstood issue, now properly fixed
2015-09-19 09:53:30 -07:00
Henric Andersson
46f89c38a7
Fixed issue where ~ is used in DOWNLOADDIR
...
Some commands don't like it when a path has ~ in it, so
now we convert that into a regular path.
2015-09-19 09:50:00 -07:00
Henric Andersson
f405426fba
Added -y to YUM and removed trailing whitespaces
2015-08-13 17:48:25 -07:00
falcon15500
ec41d972a4
Add check for INSTALLED_VERSION for RHEL distros
2015-08-07 21:51:13 +10:00