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?
description: Please read the pinned issues to see if they cover your issue first.
options:
- label: I have read the pinned issues
- label: I have read the pinned issues and could not find my issue
required: true
- type: checkboxes
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.
options:
- label: I have searched the existing issues
required: true
- label: I have searched the existing discussions
required: true
- type: checkboxes
attributes:
label: Is there any comment in the documentation for this?
@ -26,10 +28,12 @@ body:
- type: checkboxes
attributes:
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:
- label: I have checked the provider repo for issues
required: true
- label: My issue is NOT related to a provider
required: true
- type: checkboxes
attributes:
label: Are you using the latest release?
@ -82,7 +86,7 @@ body:
attributes:
label: Log output
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.
validations:

View File

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

View File

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

View File

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

View File

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