Skip to content

Commit

Permalink
Change logic for log trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbelgium authored Oct 6, 2024
1 parent 1014ab1 commit 8428b4c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions portainer/rootfs/etc/services.d/portainer/run
Original file line number Diff line number Diff line change
Expand Up @@ -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

###################
Expand Down

0 comments on commit 8428b4c

Please sign in to comment.