mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Change logic for log trigger
https://github.com/alexbelgium/hassio-addons/issues/1587
This commit is contained in:
@@ -56,14 +56,14 @@ if bashio::fs.file_exists "$HIDDEN_FILE"; then
|
||||
fi
|
||||
|
||||
# Define option
|
||||
echo -n "${PASSWORD:-empty}" > "$PASSWORD_FILE"
|
||||
if bashio::config.has_value 'password'; then
|
||||
options+=(--admin-password-file "$PASSWORD_FILE")
|
||||
bashio::log.info "... password set according to add-on options."
|
||||
else
|
||||
echo -n "$PASSWORD" > "$PASSWORD_FILE"
|
||||
if [[ "$PASSWORD" = "empty" ]]; then
|
||||
bashio::log.info "... starting without predefined password."
|
||||
bashio::log.warning "If this is your first boot, you have a 5 minutes time period to perform the initial set-up."
|
||||
bashio::log.warning "If you don't do it, you would be faced with a 404 error and will need to restart the add-on to access the set-up page."
|
||||
else
|
||||
options+=(--admin-password-file "$PASSWORD_FILE")
|
||||
bashio::log.info "... password set according to add-on options."
|
||||
fi
|
||||
|
||||
###################
|
||||
|
||||
Reference in New Issue
Block a user