Fix: VPN Providers Mishandled in Unattended Installation - #2026
Conversation
|
Opened this PR before reading the contributions/raising an issue. Sorry for that! |
|
@climberomes no worries! PRs are always welcome with or without issues :) |
|
Nice work. This resolves the issue and correctly sets provider ID during unattended installs. One thing I observed is that when running with Other features (OpenVPN, WireGuard) report 'skipped' when set to 0. Ideally, VPN provider should behave the same way. This could be done by checking for 0 first: This isn't a critical error (the installer is able to continue) but would be cleaner and consistent with other features. |
Great call out. Correct it should skip on 0, not error. Darn edge cases! Commit is in and I can test this once I get a chance. |
|
Got a chance to test the changes after the PR review. In my recent test through a Docker build, i observed that somehow when Commit 1d2a223 updates this in the event this is a real issue and not an environment issue. Test verification was performed. Linked in the description. Can provide logs if needed. but pictures should avoid downloading files. |
| $function | ||
| fi | ||
| elif [ "$opt" == "pv_option" ]; then | ||
| # pv_option has multiple options and is not a normal binary flag [enabled(1)/disabled(0)]. |
There was a problem hiding this comment.
Would you mind removing this and the additional comments below? They appear to be AI generated. Thanks
|
good to merge. @climberomes many thanks for the PR! |
Bug Overview
Fixes #2027
Summary
When using the RaspAP CLI in non-interactive mode (
--yes), the--providersoption is ignored for VPN providers with IDs > 1.Example:
3-NordVPNis not installed automatically as expected.Observed behavior:
Minor UI Fix
Added
echo -efor newlines to prevent overlapping CLI output:Before:
After:
Fix
else ifblock for VPN providers usingpv_option.echo -eto prevent overlapping lines in the CLI output.Verification
Tested unattended installation for NordVPN.
Verification Part2
Test No Flag
Test --provider 0
Test --provider 1
Test --provider 3
Test --provider 5