mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-02-05 03:14:54 +01:00
Correction script
This commit is contained in:
@@ -27,9 +27,9 @@ if bashio::config.true "ingress_disabled"; then
|
|||||||
bashio::log.warning "Ingress is disabled. You'll need to connect using ip:port"
|
bashio::log.warning "Ingress is disabled. You'll need to connect using ip:port"
|
||||||
|
|
||||||
# Adapt ingress.conf
|
# Adapt ingress.conf
|
||||||
sed -i "proxy_pass/i root /etc;" /etc/nginx/servers/ingress.conf
|
sed -i "/proxy_pass/i root /etc;" /etc/nginx/servers/ingress.conf
|
||||||
sed -i "proxy_pass/i root /index.html;" /etc/nginx/servers/ingress.conf
|
sed -i "/proxy_pass/i root /index.html;" /etc/nginx/servers/ingress.conf
|
||||||
sed -i "/proxy_pass/" /etc/nginx/servers/ingress.conf
|
sed -i "/proxy_pass/d" /etc/nginx/servers/ingress.conf
|
||||||
|
|
||||||
# Remove BaseUrl
|
# Remove BaseUrl
|
||||||
if grep -q "UrlBase" "$CONFIG_LOCATION" || true; then
|
if grep -q "UrlBase" "$CONFIG_LOCATION" || true; then
|
||||||
|
|||||||
Reference in New Issue
Block a user