michealespinola / syno.plexupdate

A script to automagically update Plex Media Server on Synology NAS
GNU General Public License v3.0
273 stars 23 forks source link

Add the option to override the upgrade delay on the CLI #43

Closed offbyone closed 2 weeks ago

offbyone commented 1 year ago

I have a timed task that does this weekly, but I also want the ability to upgrade immediately sometimes. This adds a -a flag that sets the number of seconds to that number, which I can then set to zero.

michealespinola commented 1 year ago

This is something I have already written some code for. Its getopt (not getopts, but is similar. I had been holding off integrating it because of config file changes that I was also finalizing. I appreciate the effort you have made here, and will push up my schedule to get these changes made.

offbyone commented 1 year ago

That's perfect, thanks! I'll maintain the patch on my end until you have the time.

michealespinola commented 1 year ago

Sounds like a plan. I'll make certain that this option is in the next release.

michealespinola commented 2 weeks ago

Its been a while, but '-a' has been added as a getopts option. It should continue to work as previously discussed, and as such has been added to the next release.