Skip to content
Snippets Groups Projects
Commit b3030d43 authored by felmer's avatar felmer
Browse files

LMS-2471 bug fixed: index folder has to be deleted first before untar index...

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
parent 485cb311
No related merge requests found
...@@ -98,6 +98,7 @@ for db in $DATABASES; do ...@@ -98,6 +98,7 @@ for db in $DATABASES; do
echo "Database '$db' has been successfully restored." echo "Database '$db' has been successfully restored."
done done
############## restore store ############## ############## restore store ##############
rm -rf "$INDEX"
mkdir -p "$INDEX" mkdir -p "$INDEX"
if ! tar -xf $SNAPSHOT_FILES/index.tar -C "$INDEX"; then if ! tar -xf $SNAPSHOT_FILES/index.tar -C "$INDEX"; then
echo "Error: Couldn't restore index." echo "Error: Couldn't restore index."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment