mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-02-06 11:54:53 +01: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_ipv6=()
|
||||
LOG_LEVEL="$(bashio::config "log_level")"
|
||||
log_level="$(bashio::config "log_level")"
|
||||
|
||||
_parse_config() {
|
||||
local -n config_ref="$1"
|
||||
@@ -348,11 +348,11 @@ _openvpn_up() {
|
||||
chmod 755 ${config["PostDownScript"]}
|
||||
|
||||
# Define logging
|
||||
LOG_PATH="/dev/null"
|
||||
if [[ "$LOG_LEVEL" == "debug" ]]; then
|
||||
log_path="/dev/null"
|
||||
if [[ "$log_level" == "debug" ]]; then
|
||||
bashio::log.warning "Starting openvpn in debug mode"
|
||||
bashio::log.warning "------------------------------"
|
||||
LOG_PATH="/proc/1/fd/1"
|
||||
log_path="/proc/1/fd/1"
|
||||
fi
|
||||
|
||||
# Start OpenVPN in the background
|
||||
@@ -360,7 +360,7 @@ _openvpn_up() {
|
||||
--config "${config["ConfigFile"]}" \
|
||||
--client \
|
||||
--daemon \
|
||||
--log "$LOG_PATH" \
|
||||
--log "$log_path" \
|
||||
--script-security 2 \
|
||||
--auth-user-pass "${OPENVPN_STATE_DIR}/credentials.conf" \
|
||||
--auth-retry none \
|
||||
|
||||
Reference in New Issue
Block a user