Skip to content

How to keep script updated? #178

Answered by 007revad
elisimpson asked this question in Q&A
Discussion options

You must be logged in to vote

You can use the autoupdate update option.

--autoupdate=AGE
    AGE is how many days old a release must be before auto-updating. 
    AGE must be a number: 0 or greater.

I'd recommend setting the age to 3 days or more, because I do occasionally make a mistake that I may not notice right away.

When your Synology reboots and runs the script with the --autoupdate option it will:

  1. Check for an updated version
  2. Automatically download the new version.
  3. Run the new script version.

If there is no Internet access, after 30 seconds the script will continue running the current version.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by elisimpson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants