Fix potential permission issue

This commit is contained in:
Salamandar 2024-03-07 16:20:06 +01:00
parent 78616d5cea
commit 1224266473

View file

@ -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