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