Commit graph

63 commits

Author SHA1 Message Date
Henric Andersson
7eec8724e8 Merge pull request #29 from devinslick/master
Typos
2015-10-25 11:40:03 -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
Henric Andersson
cfb0842c84 Merge pull request #28 from devinslick/master
Added AUTOSTART option
2015-10-23 21:59:43 -07: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
6f8980ba70 Merge pull request #1 from devinslick/test-branch
Testing REDHAT variable
2015-10-23 17:26:53 -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
Henric Andersson
ea071d81df Merge pull request #24 from knightabe/remove_deprecated_yum_localinstall
yum localinstall is deprecated, install will handle local files as well.
2015-10-08 06:34:41 -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
Henric Andersson
b809a59b27 Merge pull request #23 from xombiemp/master
Small documentation change
2015-09-30 23:19:14 -07: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
Henric Andersson
cfaa29d804 Merge pull request #22 from xombiemp/master
Download Directory fix for multiple spaces
2015-09-30 23:02:17 -07: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
234315888d Goofed on the TL;DR section
Wrong link and wrong field in the .plexupdate file.
2015-09-29 10:28:21 -07:00
Henric Andersson
18076b9e28 Added trivia 2015-09-28 00:35:10 -07:00
Henric Andersson
6264d51d2a Updated README.md
Never really thought about putting some instructions here. But here we go
2015-09-28 00:19:20 -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
Henric Andersson
387d8831a0 Merge pull request #14 from falcon15500/master
Add check for INSTALLED_VERSION for RHEL distros
2015-08-07 06:15:37 -07:00
falcon15500
ec41d972a4 Add check for INSTALLED_VERSION for RHEL distros 2015-08-07 21:51:13 +10:00
Henric Andersson
b0ff37ee9b Minor tweak to see if dpkg -i issue disappears 2015-07-31 13:19:07 -07:00
Henric Andersson
5c31c355ef Added auto-update option 2015-07-31 13:16:46 -07:00
Henric Andersson
0e7f98756f Now detects incorrect username/password 2015-07-31 12:54:55 -07:00
Henric Andersson
1fec4755b6 Merge pull request #10 from mpwdawson/master
Add delete after auto install switch
2015-07-03 13:01:00 -07:00
Mike Dawson
a4896420fc Add delete after auto install switch 2015-06-26 23:35:40 -07:00
Henric Andersson
bf6bf497ce Merge pull request #9 from markglenn/master
Fix check for installed version with no install
2015-06-17 06:58:01 -07:00
Mark Glenn
6477bf6545 Fix check for installed version with no install
When Plex is not currently installed, make sure to check that the
installed version is blank before assuming it matches the available
version.
2015-06-16 21:39:03 -05:00
Henric Andersson
a77956be2f Merge pull request #7 from diedthreetimes/master
Cleanup user notifications when autoinstall is set
2015-02-08 13:04:06 -08:00
Sky Faber
e2f4222aa1 Cleanup user notifications when autoinstall is set 2015-02-08 10:18:45 -08:00
Henric Andersson
e4c661c2f7 Merge pull request #6 from xombiemp/master
Use the   [[ ]] operator to perform Pattern Matching. Otherwise the expr...
2015-02-06 06:41:12 -08:00
Andrew Parker
0bd03f8ff9 Use the [[ ]] operator to perform Pattern Matching. Otherwise the expression will never be true. 2015-02-05 23:56:07 -07:00
Henric Andersson
48ee906bb5 Fixed issue with force download, also changed exit code for when
the version is already installed so callers can detect what happen.

Lastly, the version stuff is gone, no point when I'm merging pull
requests :) Please use git instead :D
2015-02-01 22:52:37 -08:00
darrin0101
7e9cef860c Added detection of currently installed version. 2015-02-01 22:51:58 -08:00
Henric Andersson
e3953d13f1 Changed from RPM tool to yum which should automatically pull in
dependencies. (Djelibeybi)
2015-02-01 22:29:21 -08:00