-
Notifications
You must be signed in to change notification settings - Fork 145
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
Adds new config migration script #122
Conversation
hi, I have added your migration scrip directlyt to the openwrt/packages MR. |
Ok. As soon as they merge it into the other repository I will delete the branch of this one so that it will be clean. |
> /dev/null 2>&1 || true | ||
|
||
# Rename configuration to default | ||
uci rename zerotier.@zerotier[0]='global' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewing this carefully I realized that here I put default
instead of global
, I have just corrected it.
I have uploaded the change that adds support for what we discussed in #128. If you want to upload everything to openwrt/packages#24773 and I promise not to make any more changes until it has been merged. |
I close this PR since it is already applied. |
Just add the configuration migration script to the new model introduced in #120
The script is quite simple. It generates the new
network
entries from thejoin
list, renames it tolocal_conf
(which with the new configuration is calledlocal_conf_path
) and renames the configuration todefault
so that it is loaded correctly by the new init script.All this is done with the user's first configuration. If the user has more than one configuration for having several instances up (something quite unlikely) the rest are simply ignored and it is up to the user to evaluate what he/she wants to do.