-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NextDNS package not reinstalled on UDM/UXP firmware upgrade #913
Comments
Not against the idea, however, if you have a way to persist a boot script over firmware updates while the nextdns package does not, it would be better to exploit this to automatically restore the package. Can you provide more details about how you maintain those boot scripts active? |
I use the Unifi OS utilities boot script. https://github.com/unifi-utilities/unifios-utilities/blob/main/on-boot-script/README.md From the readme it states, the script…
So maybe you are on the right track in your thinking. Either way, the goal is to either be able to keep Nextdns installed between updates, or reinstall it immediately after an update on boot. |
Apparently they have the same problem with 3.x and upgrades. Are you sure your boot scripts are surviving upgrades? Once they find a solution, we can port it. |
And here I thought my on-boot scripts were working fine. Turns out the I have a few scripts in Hopefully a solution is reached on that thread. I was able to get |
I'd like this for the use-case of cloud vm exit-node provisioning |
I'd love to do this as well. I'd like to initiate the re-install from node-red via ssh, and if it's already installed then it could just exit. The config files are always still around, it's just the program itself gets removed. Once it's reinstalled it works fine with no changes. Maybe like a sh -c 'sh -c "$(curl -sL https://nextdns.io/install-unattended"' or something? |
Yes I am seeing this too and as often as the UDM firmware comes out remembering to re-install the package is a bit cumbersome. Sounds like so far there is not a resolution? The Control-D folks said without a doubt their install persists but I have not tried/tested it. I have been a loyal NextDNS user since the start and don't like to change just to change products. I would like to see this just "fix itself" after a firmware upgrade, b/c I have no other scripts running after updates. This is the only add on I need to maintain after an upgrade. |
I’m not aware of a solution. If you find something working, let me know so I can implement it. |
Well, for my use case I just need the script to run without asking the user to press 'i'. Once it installs, the config files are not removed when UDM re-images, it's just the install files, so it works right away. I usually just ctrl-break out of the config wizard. So i suppose just some sort of way to tell the install to bypass the initial screen asking you to enter 'i' would be worth a shot? |
You can just reinstall the apt package (or restore it). You don’t need to run the installer. |
I..... can't believe I didn't think of that haha. Ok, next UDM update I'll give that a shot. |
I just discovered my UXG had secretly done an update and removed NextDNS. Not sure how I can even auto detect that its been removed. Need persistence! |
not "secretly" but you have activated "automatic updates". |
https://github.com/unifi-utilities/unifios-utilities/tree/main/on-boot-script-2.x |
This project is using the same technique as our installer and has likely the same issue on firmware upgrade since recent firmwares. |
nextdns is uninstalled from my unifi os (Dream Machine Pro) on every update. I have boot scripts that run on each boot to re-configure things after this happens. I'd like to add to those scripts the install command `sh -c 'sh -c "$(curl -sL https://nextdns.io/install)"'. But this script requires user interaction. I'd like a way to run it in silent mode without the need for user interaction. I have subsequent commands to configure nextdns in my boot script.
The text was updated successfully, but these errors were encountered: