mwarning / zerotier-openwrt

A OpenWrt package for ZeroTier One - Pull requests are welcome!
669 stars 140 forks source link

Fixes #126 #127

Closed ogarcia closed 2 weeks ago

ogarcia commented 2 weeks ago

The startup script attempts to create the identity.secret file before the ${CONFIG_PATH} directory containing the identity.secret file. This change fixes that problem and makes sure to create that directory first.

ogarcia commented 2 weeks ago

@mwarning as soon as possible send this change to the merge request https://github.com/openwrt/packages/pull/24773

The truth is that I did not notice the failure because all the tests I did was with the router already started doing restarts of the daemon, but if you start from scratch the creation of the directory happens after trying to put the secret file inside it and, of course, it does not work. Simply changing the order of how things happen will solve the problem.