mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 05:44:03 +02:00
Update 81-modifications.sh
This commit is contained in:
@@ -48,6 +48,11 @@ echo "... caddyfile modifications"
|
|||||||
caddy fmt --overwrite /etc/caddy/Caddyfile
|
caddy fmt --overwrite /etc/caddy/Caddyfile
|
||||||
sed -i "s|http://|http://:8081|g" /etc/caddy/Caddyfile
|
sed -i "s|http://|http://:8081|g" /etc/caddy/Caddyfile
|
||||||
|
|
||||||
|
# Improve webui paths to facilitate ingress
|
||||||
|
echo "... correcting webui paths"
|
||||||
|
sed -i "s|/stats|/stats/|g" "$HOME"/BirdNET-Pi/homepage/views.php
|
||||||
|
sed -i "s|/log|/log/|g" "$HOME"/BirdNET-Pi/homepage/views.php
|
||||||
|
|
||||||
# If port 80 is enabled, make sure it is still 80
|
# If port 80 is enabled, make sure it is still 80
|
||||||
if [ -n "$VARIABLE" ] && [ "$(bashio::addon.port 80)" != 80 ]; then
|
if [ -n "$VARIABLE" ] && [ "$(bashio::addon.port 80)" != 80 ]; then
|
||||||
bashio::log.fatal "The port 80 is enabled, but should still be 80 if you want the automatic ssl certificates generation to work"
|
bashio::log.fatal "The port 80 is enabled, but should still be 80 if you want the automatic ssl certificates generation to work"
|
||||||
|
|||||||
Reference in New Issue
Block a user