Advertisement
dcuddihy-acr-me

kewr.acr.lan.issues.166

Aug 1st, 2014
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. #
  2. # [kewr.acr.lan issue 166](https://bitbucket.org/autonomy/kewr.acr.lan/issue/166)
  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 bbsage --reinstall
  15. apt-get -y --force-yes install bbmint --reinstall
  16. apt-get -y --force-yes install bbdill --reinstall
  17. apt-get -y --force-yes install bbthyme --reinstall
  18. apt-get -y --force-yes install bbginger --reinstall
  19.  
  20. # Fix the matplotlib directory installer bug;
  21. sudo chown -R ${ROBOTO} /home/${ROBOTO}/.matplotlib
  22.  
  23. # Deploys new version of bbconfig
  24. pushd /home/${ROBOTO}/hgdev/org.bitbucket/autonomy/${BBCONFIG_REPO}
  25. make opt-bbconfig
  26. make opt-meacr
  27. popd
  28.  
  29. # Install crontab
  30. cp /opt/bbconfig/current/opt/etc/me.acr/ginger/nobody/crontab-syncbox /etc/crontab
  31. chown root /etc/crontab
  32. chmod 644 /etc/crontab
  33.  
  34. # Smoke-test the publisher framework
  35. source /etc/portion.env && source /etc/profile.d/runtime-context.sh && /opt/bbginger/current/bin/publish-list
  36.  
  37. echo "Done: " $(date)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement