mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
GitHub bot: fix linting issues (nobuild)
This commit is contained in:
9
postgres_15/rootfs/etc/cont-init.d/99-run.sh
Executable file → Normal file
9
postgres_15/rootfs/etc/cont-init.d/99-run.sh
Executable file → Normal 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!"
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user