From 1224266473506a84cdb05adadaa490a393ea51d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Thu, 7 Mar 2024 16:20:06 +0100 Subject: [PATCH] Fix potential permission issue --- scripts/install | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/install b/scripts/install index 5864c1c..618da95 100644 --- a/scripts/install +++ b/scripts/install @@ -21,6 +21,9 @@ ynh_install_nodejs --nodejs_version="$NODEJS_VERSION" #================================================= ynh_script_progression --message="Starting elasticsearch..." +# Fix permissions in case of remove/reinstall +chown -R elasticsearch:elasticsearch /var/lib/elasticsearch + systemctl enable elasticsearch.service --quiet systemctl start elasticsearch.service