-
-
Notifications
You must be signed in to change notification settings - Fork 205
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
Detailed v6 migration output on fresh installs #2217
Comments
We discussed this internally a long time ago and thought it'd be worth being verbose by default to ensure no surprises happen. We print this while we are working through the file so we don't know on the first line if there will be something coming later. But I agree that we do not need to run this at all if there is no |
Yes this is what I was thinking. Just to clarify, where I tracked it down correctly:
You PR will address this issue pretty well. As perfectionist, I would further suggest the following:
So as result:
|
I am currently rather swamped with support requests for all possible kinds of setups (mostly users having another web server on the same machine stuff), so I would not at all mind if you could PR your suggestions yourself and we only need to review this later ;-) |
Yes sure, and it is of course not at all important, just my perfectionist eye 😅. |
Versions
Platform
Expected behavior
On a fresh install, I expect max one output line, stating that no v5 configs have been found to migrate.
Actual behavior / bug
Steps to reproduce
Steps to reproduce the behavior:
curl -sSL https://install.pi-hole.net | bash
Debug Token
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
The migration is skipped it the v6 config exists already, which is not the case on a fresh v6 install. I probably makes sense to not trust the absence of one or two specific config files within the installer, where the migration includes a bunch of files and directories, but
pihole-FTL
internally can skip the verbose output. It already recognizes that there is no config, prints two lines about this, then prints another line that it will migrate this non-existing config and then a lot of lines that each setting was not set and hence all (but the network port) are defaults. I guess it can exit early if there is no/etc/pihole/setupVars.conf
and/etc/pihole/migration_backup_v6
is empty, skipping everything else, to give users a better impression and overview of relevant install output.The text was updated successfully, but these errors were encountered: