From 16f2608fd6921fb2bacbf5f540f70ed3f053dd57 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 24 Jun 2025 11:33:32 +0000 Subject: [PATCH] GitHub bot: fix linting issues (nobuild) --- postgres_15/rootfs/etc/cont-init.d/99-run.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) mode change 100755 => 100644 postgres_15/rootfs/etc/cont-init.d/99-run.sh diff --git a/postgres_15/rootfs/etc/cont-init.d/99-run.sh b/postgres_15/rootfs/etc/cont-init.d/99-run.sh old mode 100755 new mode 100644 index b8eda4357..029a176b7 --- a/postgres_15/rootfs/etc/cont-init.d/99-run.sh +++ b/postgres_15/rootfs/etc/cont-init.d/99-run.sh @@ -356,9 +356,9 @@ check_for_reindex() { if echo "$log_tail" | grep -q "please use REINDEX to rebuild the index"; then bashio::log.warning "REINDEX needed, starting now" - for db in $(get_user_databases); do - psql -h "$DB_HOSTNAME" -p "$DB_PORT" -U "$DB_USERNAME" -d "$db" -v ON_ERROR_STOP=1 -c "REINDEX DATABASE $db;" - done + for db in $(get_user_databases); do + psql -h "$DB_HOSTNAME" -p "$DB_PORT" -U "$DB_USERNAME" -d "$db" -v ON_ERROR_STOP=1 -c "REINDEX DATABASE $db;" + done fi } @@ -403,7 +403,8 @@ main() { rm -r /config/backups fi - check_for_reindex & bashio::log.info "All initialization/version check steps completed successfully!" + check_for_reindex & + bashio::log.info "All initialization/version check steps completed successfully!" }