There's a command for unattended upgrades?
Unsolved
Technical Support
-
Hi, I switched from docker install to normal install and I wonder if i can automate updates because I will 100% forget to apply them in the long term
I tried to create a script to run once a month to do this:
-
delete everything except
config.json
,packages.json
anduploads
-
get latest source for the 3.x branch from github
-
run
./nodebb upgrade
as node user, then start it
but then I noticed that
./nodebb upgrade
can ask "do you want to upgrade this plugin Y/N?", and so it can't be run attended in a scriptI checked in the help and I did not see a command to make it unattended, so I resorted to just run it as
./nodebb upgrade -mib && ./nodebb start
, which looks like it does not ask questionsWhat do you think?
-
Copyright © 2024 NodeBB | Contributors