mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-09 17:15:57 +02:00
lower case
This commit is contained in:
@@ -8,7 +8,7 @@ config["MySelf"]="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/$(basename "${BA
|
|||||||
|
|
||||||
declare -a dns_servers_ipv4=()
|
declare -a dns_servers_ipv4=()
|
||||||
declare -a dns_servers_ipv6=()
|
declare -a dns_servers_ipv6=()
|
||||||
LOG_LEVEL="$(bashio::config "log_level")"
|
log_level="$(bashio::config "log_level")"
|
||||||
|
|
||||||
_parse_config() {
|
_parse_config() {
|
||||||
local -n config_ref="$1"
|
local -n config_ref="$1"
|
||||||
@@ -348,11 +348,11 @@ _openvpn_up() {
|
|||||||
chmod 755 ${config["PostDownScript"]}
|
chmod 755 ${config["PostDownScript"]}
|
||||||
|
|
||||||
# Define logging
|
# Define logging
|
||||||
LOG_PATH="/dev/null"
|
log_path="/dev/null"
|
||||||
if [[ "$LOG_LEVEL" == "debug" ]]; then
|
if [[ "$log_level" == "debug" ]]; then
|
||||||
bashio::log.warning "Starting openvpn in debug mode"
|
bashio::log.warning "Starting openvpn in debug mode"
|
||||||
bashio::log.warning "------------------------------"
|
bashio::log.warning "------------------------------"
|
||||||
LOG_PATH="/proc/1/fd/1"
|
log_path="/proc/1/fd/1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Start OpenVPN in the background
|
# Start OpenVPN in the background
|
||||||
@@ -360,7 +360,7 @@ _openvpn_up() {
|
|||||||
--config "${config["ConfigFile"]}" \
|
--config "${config["ConfigFile"]}" \
|
||||||
--client \
|
--client \
|
||||||
--daemon \
|
--daemon \
|
||||||
--log "$LOG_PATH" \
|
--log "$log_path" \
|
||||||
--script-security 2 \
|
--script-security 2 \
|
||||||
--auth-user-pass "${OPENVPN_STATE_DIR}/credentials.conf" \
|
--auth-user-pass "${OPENVPN_STATE_DIR}/credentials.conf" \
|
||||||
--auth-retry none \
|
--auth-retry none \
|
||||||
|
|||||||
Reference in New Issue
Block a user