Skip to content

Instantly share code, notes, and snippets.

@josellausas
Created December 13, 2016 18:30
Show Gist options
  • Save josellausas/7952c625a48d811d0f5c2ed116b39a89 to your computer and use it in GitHub Desktop.
Save josellausas/7952c625a48d811d0f5c2ed116b39a89 to your computer and use it in GitHub Desktop.
Script to fix Elastic search
clear
echo ""
echo "------------------"
echo "Elastic Search Fix"
echo "------------------"
echo ""
echo "[*] Creating Directory ..."
sudo mkdir /var/run/elasticsearch
echo ""
echo "[*] Chowning Directory ..."
sudo chown elasticsearch:elasticsearch /var/run/elasticsearch
echo ""
echo "[*] Restarting elastic search"
sudo supervisorctl restart elasticsearch
echo ""
echo "-----------------"
echo "Success fixing!!"
echo "-----------------"
echo ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment