From b3030d4376755e455faa2fcfb2c59109ad531be5 Mon Sep 17 00:00:00 2001 From: felmer <felmer> Date: Wed, 14 Sep 2011 07:02:20 +0000 Subject: [PATCH] LMS-2471 bug fixed: index folder has to be deleted first before untar index from snapshot otherwise current index is used instead of snapshot index. SVN: 22934 --- openbis_all/source/bash/servers-startup-from-snapshot.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/openbis_all/source/bash/servers-startup-from-snapshot.sh b/openbis_all/source/bash/servers-startup-from-snapshot.sh index 927f62612ec..bbcf303381f 100755 --- a/openbis_all/source/bash/servers-startup-from-snapshot.sh +++ b/openbis_all/source/bash/servers-startup-from-snapshot.sh @@ -98,6 +98,7 @@ for db in $DATABASES; do echo "Database '$db' has been successfully restored." done ############## restore store ############## +rm -rf "$INDEX" mkdir -p "$INDEX" if ! tar -xf $SNAPSHOT_FILES/index.tar -C "$INDEX"; then echo "Error: Couldn't restore index." -- GitLab