mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-22 14:00:32 +02:00
Correct config.ini.php location
This commit is contained in:
@@ -125,11 +125,11 @@ fi || true
|
|||||||
if bashio::config.has_value "trusted_headers" && [ -f "$WEBTREES_HOME"/data/config.ini.php ]; then
|
if bashio::config.has_value "trusted_headers" && [ -f "$WEBTREES_HOME"/data/config.ini.php ]; then
|
||||||
bashio::log.info "Aligning trusted_headers addon config (use single address, or a range of addresses in CIDR format)"
|
bashio::log.info "Aligning trusted_headers addon config (use single address, or a range of addresses in CIDR format)"
|
||||||
sed -i "/trusted_headers/ d" "$WEBTREES_HOME"/data/config.ini.php
|
sed -i "/trusted_headers/ d" "$WEBTREES_HOME"/data/config.ini.php
|
||||||
sed -i "1a trusted_headers=\"$(bashio::config 'trusted_headers')\""/data/config.ini.php
|
sed -i "1a trusted_headers=\"$(bashio::config 'trusted_headers')\"" "$WEBTREES_HOME"/data/config.ini.php
|
||||||
elif [ -f "$WEBTREES_HOME"/data/config.ini.php ]; then
|
elif [ -f "$WEBTREES_HOME"/data/config.ini.php ]; then
|
||||||
bashio::log.info "Aligning trusted_headers addon config with cf-connecting-ip"
|
bashio::log.info "Aligning trusted_headers addon config with cf-connecting-ip"
|
||||||
sed -i "/trusted_headers/ d" "$WEBTREES_HOME"/data/config.ini.php
|
sed -i "/trusted_headers/ d" "$WEBTREES_HOME"/data/config.ini.php
|
||||||
sed -i "1a trusted_headers=\"cf-connecting-ip\"" /data/config.ini.php
|
sed -i "1a trusted_headers=\"cf-connecting-ip\"" "$WEBTREES_HOME"/data/config.ini.php
|
||||||
fi
|
fi
|
||||||
|
|
||||||
############
|
############
|
||||||
|
|||||||
Reference in New Issue
Block a user