SierraSoftworks / tailscale-udm

Run Tailscale on your Unifi Dream Machine
MIT License
644 stars 39 forks source link

Persistent install on 4.x OS #92

Open surfingbytes opened 3 weeks ago

surfingbytes commented 3 weeks ago

Can we please have support for 4.x firmware? I mean, it works, but I have to reinstall it after every update. Is there a way to make it persistent across updates?

guentherwieser commented 3 weeks ago

Upvoting, I just lost connectivity again and was wondering what happened. Btw, great software/project! Helps a lot!

notheotherben commented 3 weeks ago

Will take a look once I have some time to do so, in general adding support for persistent updates is a lot of work as you need to find ways to work around UniFi's updates wiping the system partition (which isn't always easy). It's on my list, but may take some time.

guentherwieser commented 3 weeks ago

As this was my first time seeing this behavior after an update (my Dream Machine SE is brand spanking new), I feared that I need to do all the setup again, but fortunately it's just executing the curl command and running "tailscale up", all the settings seem to be persistent which is great!

mastier commented 2 weeks ago

I see you ask for posting this, so I am doing it :-) @notheotherben Nothink was wiped during the update yet, it did not start at boot

# /data/tailscale/manage.sh update
Unsupported UniFi OS version (v4).
Please provide the following information to us on GitHub:
# /usr/bin/ubnt-device-info firmware_detail
4.0.6
# /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
notheotherben commented 2 weeks ago

Hi @mastier, thanks for posting that - the latest release does include support for UniFi OS 4.x and if you were running an older release of this script then you would receive that error. Updating should take care of it for you.

mastier commented 2 weeks ago

Indeed. Thank you