Giter Club home page Giter Club logo

Comments (13)

rs avatar rs commented on May 29, 2024

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?

from nextdns.

jasonwaters avatar jasonwaters commented on May 29, 2024

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…

Persists through reboot and firmware updates! It is able to do this because Ubiquiti caches all debian package installs on the UDM in /data, then re-installs them on reset of unifi-os container

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.

from nextdns.

rs avatar rs commented on May 29, 2024

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.

from nextdns.

jasonwaters avatar jasonwaters commented on May 29, 2024

And here I thought my on-boot scripts were working fine. Turns out the udm-boot service was in fact not working either.

I have a few scripts in /data/on_boot.d that are set to run in sequence by the udm-boot service. But since nextdns was not-installed anymore I'd ssh in and manually execute each script after re-installing nextdns. In doing so I assumed udm-boot was doing it's job but failing (due to nextdns no longer installed) when in reality it was also not working. All the while, my system was running fine since i was manually invoking those scripts each time. 🙃

Hopefully a solution is reached on that thread. I was able to get udm-boot working again by following these steps unifi-utilities/unifios-utilities#523 (comment) but not sure it will survive firmware upgrades. I'll have to wait and see.

from nextdns.

rojomisin avatar rojomisin commented on May 29, 2024

I'd like this for the use-case of cloud vm exit-node provisioning

from nextdns.

phaelium avatar phaelium commented on May 29, 2024

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?

from nextdns.

ChrisColotti avatar ChrisColotti commented on May 29, 2024

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.

from nextdns.

rs avatar rs commented on May 29, 2024

I’m not aware of a solution. If you find something working, let me know so I can implement it.

from nextdns.

phaelium avatar phaelium commented on May 29, 2024

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?

from nextdns.

rs avatar rs commented on May 29, 2024

You can just reinstall the apt package (or restore it). You don’t need to run the installer.

from nextdns.

phaelium avatar phaelium commented on May 29, 2024

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.

from nextdns.

macflyhub avatar macflyhub commented on May 29, 2024

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!

from nextdns.

bondskin avatar bondskin commented on May 29, 2024

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".

from nextdns.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.