From 9c6d3f8789c4baa2acb6f95be05b74e6e7158799 Mon Sep 17 00:00:00 2001
From: Lionel Vidaller <lvidaller@grandlyon.com>
Date: Fri, 20 Nov 2020 14:41:24 +0100
Subject: [PATCH] correction bug

---
 photon/entrypoint.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/photon/entrypoint.sh b/photon/entrypoint.sh
index a0e7397..18f3a48 100755
--- a/photon/entrypoint.sh
+++ b/photon/entrypoint.sh
@@ -10,7 +10,8 @@ until [ -e "$FILE" ]; do
   sleep 5
 done
 
-rm -Rf ./photondata && mkdir photondata
+rm $FILE
+rm -Rf /photon/photon_data/elasticsearch
 
 # Create elasticsearch index
 if [ ! -d "/photon/photon_data/elasticsearch" ]; then
-- 
GitLab