From 9bd80bf27f7b52a06190f4793fbee6e49c787f81 Mon Sep 17 00:00:00 2001 From: Eric Smalling Date: Fri, 21 Jun 2024 13:00:17 -0500 Subject: [PATCH] Parameterize last_restore_file in docker-entrypoint.sh Fixes #772 --- k8s/docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/docker-entrypoint.sh b/k8s/docker-entrypoint.sh index dffc19a8..c07dd678 100755 --- a/k8s/docker-entrypoint.sh +++ b/k8s/docker-entrypoint.sh @@ -18,7 +18,7 @@ restore() { # the file does not exist or if the values differ. echo "Running Medusa in restore mode" - last_restore_file=/var/lib/cassandra/.last-restore + last_restore_file=${MEDUSA_TMP_DIR:-'/var/lib/cassandra'}/.last-restore if [ -z "$BACKUP_NAME" ]; then echo "BACKUP_NAME env var not set, skipping restore operation"