Fixed missing env variables (#1973)

* Update bug_report.yaml (#1949)

* Fixed missing env variables

openvpn tunnelUp was missing required env variables: fixed
privoxy start/stop same: fixed
PEER_DNS and PEER_DNS_PIN_ROUTES added to persistEnv file
This commit is contained in:
Patrick Kishino 2021-09-29 09:15:18 +09:00 committed by GitHub
parent b3074d5010
commit 502ca0a5ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 16 additions and 6 deletions

View File

@ -7,15 +7,17 @@ body:
label: Is there a pinned issue for this? label: Is there a pinned issue for this?
description: Please read the pinned issues to see if they cover your issue first. description: Please read the pinned issues to see if they cover your issue first.
options: options:
- label: I have read the pinned issues - label: I have read the pinned issues and could not find my issue
required: true required: true
- type: checkboxes - type: checkboxes
attributes: attributes:
label: Is there an existing or similar issue for this? label: Is there an existing or similar issue/discussion for this?
description: Please search to see if an issue already exists for the bug you encountered. description: Please search to see if an issue already exists for the bug you encountered.
options: options:
- label: I have searched the existing issues - label: I have searched the existing issues
required: true required: true
- label: I have searched the existing discussions
required: true
- type: checkboxes - type: checkboxes
attributes: attributes:
label: Is there any comment in the documentation for this? label: Is there any comment in the documentation for this?
@ -26,10 +28,12 @@ body:
- type: checkboxes - type: checkboxes
attributes: attributes:
label: Is this related to a provider? label: Is this related to a provider?
description: Please check the <a href="https://github.com/haugene/vpn-configs-contrib/issues/">provider issues repo</a> for this. description: Please check the <a href="https://github.com/haugene/vpn-configs-contrib/issues/">provider issues repo</a> for this. If this issue is related to a provider, please post it there.
options: options:
- label: I have checked the provider repo for issues - label: I have checked the provider repo for issues
required: true required: true
- label: My issue is NOT related to a provider
required: true
- type: checkboxes - type: checkboxes
attributes: attributes:
label: Are you using the latest release? label: Are you using the latest release?
@ -82,7 +86,7 @@ body:
attributes: attributes:
label: Log output label: Log output
description: | description: |
Please show log output, either text or screenshot Please show complete log output, either text or screenshot
Tip: You can attach images by clicking this area to highlight it and then dragging files in. Tip: You can attach images by clicking this area to highlight it and then dragging files in.
validations: validations:

View File

@ -21,7 +21,9 @@ wanted_variables = {
'GLOBAL_APPLY_PERMISSIONS', 'GLOBAL_APPLY_PERMISSIONS',
'LOG_TO_STDOUT', 'LOG_TO_STDOUT',
'DISABLE_PORT_UPDATER', 'DISABLE_PORT_UPDATER',
'TZ' 'TZ',
'PEER_DNS',
'PEER_DNS_PIN_ROUTES'
} }
variables_to_persist = {} variables_to_persist = {}

View File

@ -1,4 +1,7 @@
#!/bin/bash #!/bin/bash
# Source our persisted env variables from container startup
. /etc/transmission/environment-variables.sh
if [[ "${PEER_DNS,,}" == "true" ]]; then if [[ "${PEER_DNS,,}" == "true" ]]; then
NS= NS=
NS_ROUTES=( ) NS_ROUTES=( )

View File

@ -1,7 +1,6 @@
#!/bin/bash #!/bin/bash
# Source our persisted env variables from container startup # Source our persisted env variables from container startup
# shellcheck source=/dev/null
. /etc/transmission/environment-variables.sh . /etc/transmission/environment-variables.sh
set_port() set_port()

View File

@ -1,4 +1,6 @@
#!/bin/bash #!/bin/bash
# Source our persisted env variables from container startup
. /etc/transmission/environment-variables.sh
if [[ "${WEBPROXY_ENABLED}" = "true" ]]; then if [[ "${WEBPROXY_ENABLED}" = "true" ]]; then