Created
November 6, 2018 16:50
-
-
Save hemna/1ecd40f42497ab6b2bc05a0a8747a661 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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