Advertisement
dcuddihy-acr-me

kewr.acr.lan.issues.158

Jul 23rd, 2014
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #
  2. # [kewr.acr.lan issue 158](https://bitbucket.org/autonomy/kewr.acr.lan/issue/158)
  3. #
  4. set -e
  5. set -x
  6.  
  7. echo "Starting: " $(date)
  8. export TERM=xterm
  9.  
  10. # Forcefully redeploy our packages to guard against unknown prior state/version;
  11. # Also ensure that bbruntime gets installed -- that isn't automatic from
  12. # bbpackage dependencies.
  13. apt-get -y --force-yes update
  14. apt-get -y --force-yes install bbruntime --reinstall
  15. apt-get -y --force-yes install bbsage --reinstall
  16. apt-get -y --force-yes install bbmint --reinstall
  17. apt-get -y --force-yes install bbdill --reinstall
  18. apt-get -y --force-yes install bbthyme --reinstall
  19. apt-get -y --force-yes install bbginger --reinstall
  20.  
  21. # Fix the matplotlib directory installer bug;
  22. sudo chown -R eroboto /home/eroboto/.matplotlib
  23.  
  24. # Deploys new version of bbconfig
  25. pushd /home/eroboto/hgdev/org.bitbucket/autonomy/${BBCONFIG_REPO}
  26.     make opt-bbconfig
  27.     make opt-meacr
  28. popd
  29.  
  30. # Install crontab
  31. cp /opt/bbconfig/current/opt/etc/me.acr/ginger/nobody/crontab-syncbox /etc/crontab
  32. chown root /etc/crontab
  33. chmod 644 /etc/crontab
  34.  
  35. # Smoke-test the publisher framework
  36. source /etc/portion.env && source /etc/profile.d/runtime-context.sh && /opt/bbginger/current/bin/publish-list
  37.  
  38. echo "Done: " $(date)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement