From cb9b46e1933a02367ec27e1379252453cd434665 Mon Sep 17 00:00:00 2001 From: Sergey Nikolaev Date: Sat, 24 Feb 2024 16:01:12 +0700 Subject: [PATCH] Update docker-entrypoint.sh --- docker-entrypoint.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index b0fe50a..4cf3dbf 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -241,14 +241,9 @@ _main() { fi BACKUP_INIT_FOLDER="/docker-entrypoint-initdb.d" - INITED="" - for f in /var/lib/manticore/*; do - INITED=1 - break - done if [ -f "${BACKUP_INIT_FOLDER}/versions.json" ]; then - if [ -n "$INITED" ]; then + if [ -f /var/lib/manticore/manticore.json ]; then echo "Warning: Backup is available for restore, but it's being skipped because it's already initialized or the data directory is not empty." else if [ ! -s "/usr/bin/manticore-executor" ]; then