GitHub bot: fix linting issues (nobuild)

This commit is contained in:
github-actions
2025-06-24 11:33:32 +00:00
parent d974fe33c8
commit 16f2608fd6

9
postgres_15/rootfs/etc/cont-init.d/99-run.sh Executable file → Normal file
View File

@@ -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!"
}