diff --git a/openbis_all/source/bash/servers-startup-from-snapshot.sh b/openbis_all/source/bash/servers-startup-from-snapshot.sh index 927f62612ec28e08ea0ad57a591230230ef09cca..bbcf303381fad34cbaaef9a45874cc9fe4ad7be9 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."