mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 12:54:04 +02: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
|
if echo "$log_tail" | grep -q "please use REINDEX to rebuild the index"; then
|
||||||
bashio::log.warning "REINDEX needed, starting now"
|
bashio::log.warning "REINDEX needed, starting now"
|
||||||
for db in $(get_user_databases); do
|
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;"
|
psql -h "$DB_HOSTNAME" -p "$DB_PORT" -U "$DB_USERNAME" -d "$db" -v ON_ERROR_STOP=1 -c "REINDEX DATABASE $db;"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -403,7 +403,8 @@ main() {
|
|||||||
rm -r /config/backups
|
rm -r /config/backups
|
||||||
fi
|
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