-
-
Notifications
You must be signed in to change notification settings - Fork 111
[env] Update VPN environment variables to OPENVPN for WireGuard suppo… #520
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
base: master
Are you sure you want to change the base?
Changes from all commits
5b79c4f
b27852a
b667fad
fa64d1a
3710162
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -29,7 +29,7 @@ elif [ "$MODULE_NAME" = 'freeradius' ]; then | |||||
| source docker-entrypoint.sh -X | ||||||
| fi | ||||||
| elif [ "$MODULE_NAME" = 'openvpn' ]; then | ||||||
| if [[ -z "$VPN_DOMAIN" ]]; then exit; fi | ||||||
| if [[ -z "$OPENVPN_DOMAIN" ]]; then exit; fi | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: # Check the shebang and content of the file
head -n 35 images/common/init_command.sh | cat -nRepository: openwisp/docker-openwisp Length of output: 1216 Fix POSIX shell incompatibility: use Line 32 uses bash-specific Suggested fix- if [[ -z "$OPENVPN_DOMAIN" ]]; then exit; fi
+ if [ -z "$OPENVPN_DOMAIN" ]; then exit; fi📝 Committable suggestion
Suggested change
🧰 Tools🪛 Shellcheck (0.11.0)[warning] 32-32: In POSIX sh, [[ ]] is undefined. (SC3010) 🤖 Prompt for AI Agents |
||||||
| wait_nginx_services | ||||||
| openvpn_preconfig | ||||||
| openvpn_config | ||||||
|
|
||||||
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.
🧩 Analysis chain
🏁 Script executed:
Repository: openwisp/docker-openwisp
Length of output: 446
🏁 Script executed:
Repository: openwisp/docker-openwisp
Length of output: 50
🏁 Script executed:
Repository: openwisp/docker-openwisp
Length of output: 163
🏁 Script executed:
Repository: openwisp/docker-openwisp
Length of output: 50
🏁 Script executed:
Repository: openwisp/docker-openwisp
Length of output: 897
Update the reStructuredText anchor and cross-reference to match the variable name.
The anchor on line 58 of
docs/user/settings.rstuses.. _vpn_domain:while the environment variable is namedOPENVPN_DOMAIN. This inconsistency should be resolved by renaming the anchor to.. _openvpn_domain:. Additionally, the cross-reference indocs/user/quickstart.rst:58that uses:ref:OpenVPN <vpn_domain>must be updated to `:ref:`OpenVPN <openvpn_domain>to maintain the working reference.Changes required
In
docs/user/settings.rstline 58:In
docs/user/quickstart.rstline 58:🤖 Prompt for AI Agents