Skip to content

Commit

Permalink
Added auto reboot
Browse files Browse the repository at this point in the history
  • Loading branch information
andersosthus committed Mar 6, 2014
1 parent 2ac734a commit 766cc9f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setupES.sh
Expand Up @@ -108,6 +108,11 @@ function ConfigureES {
sudo cp ~/elasticsearch-staging.yml /etc/elasticsearch/elasticsearch.yml
}

function Reboot {
echo Rebooting...
sudo reboot
}

# Awesome ask function by @davejamesmiller https://gist.github.com/davejamesmiller/1965569
function ask {
while true; do
Expand Down Expand Up @@ -151,3 +156,4 @@ AskToConfigureDataDisk
ConfigureAzure
DownloadFiles
ConfigureES
Reboot

0 comments on commit 766cc9f

Please sign in to comment.