mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 22:04:06 +02:00
bashio::log.warning
This commit is contained in:
@@ -6,7 +6,7 @@ bashio::log.info "Starting Immich Power Tools"
|
|||||||
extract_ip_or_domain() {
|
extract_ip_or_domain() {
|
||||||
local url="$1"
|
local url="$1"
|
||||||
if [[ ! "$url" =~ ^https?:// ]]; then
|
if [[ ! "$url" =~ ^https?:// ]]; then
|
||||||
bashio::warning "URL $url has a http:// or https:// prefix. This should not be, it is removed automatically"
|
bashio::log.warning "URL $url has a http:// or https:// prefix. This should not be, it is removed automatically"
|
||||||
echo "$url" | sed -E 's|https?://([^/]+).*|\1|'
|
echo "$url" | sed -E 's|https?://([^/]+).*|\1|'
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@@ -17,7 +17,7 @@ export DB_HOST
|
|||||||
ensure_http_prefix() {
|
ensure_http_prefix() {
|
||||||
local url="$1"
|
local url="$1"
|
||||||
if [[ ! "$url" =~ ^https?:// ]]; then
|
if [[ ! "$url" =~ ^https?:// ]]; then
|
||||||
bashio::warning "URL $url does not have http:// or https:// prefix. Adding http:// by default. If cannot connect to immich, please adapt in your addon options"
|
bashio::log.warning "URL $url does not have http:// or https:// prefix. Adding http:// by default. If cannot connect to immich, please adapt in your addon options"
|
||||||
echo "http://$url"
|
echo "http://$url"
|
||||||
else
|
else
|
||||||
echo "$url"
|
echo "$url"
|
||||||
|
|||||||
Reference in New Issue
Block a user