Skip to content
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

Closed
wants to merge 3 commits into from
Closed

Adds new config migration script #122

wants to merge 3 commits into from

Conversation

ogarcia
Copy link
Collaborator

@ogarcia ogarcia commented Aug 16, 2024

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 the join list, renames it to local_conf (which with the new configuration is called local_conf_path) and renames the configuration to default 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.

@ogarcia ogarcia requested a review from mwarning August 16, 2024 10:16
@mwarning
Copy link
Owner

hi, I have added your migration scrip directlyt to the openwrt/packages MR.

@ogarcia
Copy link
Collaborator Author

ogarcia commented Aug 21, 2024

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'
Copy link
Collaborator Author

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.

@ogarcia
Copy link
Collaborator Author

ogarcia commented Aug 26, 2024

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.

@ogarcia
Copy link
Collaborator Author

ogarcia commented Sep 23, 2024

I close this PR since it is already applied.

@ogarcia ogarcia closed this Sep 23, 2024
@ogarcia ogarcia deleted the zt-migration branch September 23, 2024 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants