Skip to content

Instantly share code, notes, and snippets.

@hemna
Created November 6, 2018 16:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hemna/1ecd40f42497ab6b2bc05a0a8747a661 to your computer and use it in GitHub Desktop.
Save hemna/1ecd40f42497ab6b2bc05a0a8747a661 to your computer and use it in GitHub Desktop.
#!/bin/bash
logit () {
DATE=`date`
echo -e "$DATE $1" >> ~/bounce.log
echo -e "$DATE $1"
}
logit "START START START"
# make sure we are in our dev env
#pushd ~/crowbar-openstack
#rake assets:compile 2&>1 > ~/bounce.log
logit "Running barclamp_install.rb\n\n"
barclamp_install.rb --debug /root/crowbar-openstack >> ~/bounce.log
logit "Running rake:precompile\n\n"
pushd /opt/dell/crowbar_framework
RAILS_ENV=production rake assets:precompile 2&>1 >> ~/bounce.log
popd
logit "Restarting crowbar\n\n"
systemctl restart crowbar
#logit "Restarting Apache2\n\n"
#systemctl restart apache2
logit "END END END"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment