[bitnami/etcd] Log snapshot filename (#80457)

Signed-off-by: Jáchym Toušek <jachym.tousek@keboola.com>
This commit is contained in:
Jáchym Toušek 2025-04-29 12:34:44 +02:00 committed by GitHub
parent eda19626e5
commit 87ec7d8871
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -668,7 +668,7 @@ etcd_initialize() {
if is_boolean_yes "$ETCD_DISASTER_RECOVERY"; then
latest_snapshot_file="$(find /snapshots/ -maxdepth 1 -type f -name 'db-*' | sort | tail -n 1)"
if [[ "${latest_snapshot_file}" != "" ]]; then
info "Restoring etcd cluster from snapshot"
info "Restoring etcd cluster from snapshot ${latest_snapshot_file}"
rm -rf "$ETCD_DATA_DIR"
#
# Only recalculate the initial cluster config if it hasn't