Update brave addon base image and config

This commit is contained in:
Alexandre
2026-01-15 18:31:32 +01:00
parent eb84b02dc0
commit cf9a7e14d5
9 changed files with 29 additions and 33 deletions

View File

@@ -18,7 +18,7 @@ LOCATION=$(bashio::config 'data_location')
if [[ "$LOCATION" = "null" || -z "$LOCATION" ]]; then
# Default location
LOCATION="/config/data_kde"
LOCATION="/config"
else
# Check if config is located in an acceptable location
LOCATIONOK=""
@@ -29,7 +29,7 @@ else
done
if [ -z "$LOCATIONOK" ]; then
LOCATION="/config/data_kde"
LOCATION="/config"
bashio::log.fatal "Your data_location value can only be set in /share, /config or /data (internal to addon). It will be reset to the default location : $LOCATION"
fi
fi
@@ -48,7 +48,7 @@ done
# Correct home location
for folders in /defaults /etc/cont-init.d /etc/services.d /etc/s6-overlay/s6-rc.d; do
if [ -d "$folders" ]; then
sed -i "s|/config/data_kde|$LOCATION|g" $(find "$folders" -type f) &> /dev/null || true
sed -i "s|/config|$LOCATION|g" $(find "$folders" -type f) &> /dev/null || true
fi
done

View File

@@ -12,8 +12,8 @@ if bashio::config.true 'use_own_certs'; then
echo "... checking if referenced files exist"
if [ -f /ssl/"$CERTFILE" ] && [ -f /ssl/"$KEYFILE" ]; then
# Add ssl file
sed -i "s|/config/data/ssl/cert.pem|/ssl/$CERTFILE|g" "$NGINX_CONFIG"
sed -i "s|/config/data/ssl/cert.key|/ssl/$KEYFILE|g" "$NGINX_CONFIG"
sed -i "s|/config/ssl/cert.pem|/ssl/$CERTFILE|g" "$NGINX_CONFIG"
sed -i "s|/config/ssl/cert.key|/ssl/$KEYFILE|g" "$NGINX_CONFIG"
echo "... done"
else
bashio::log.warning "... certificate /ssl/$CERTFILE and /ssl/$KEYFILE and not found, using self-generated certificates"