Advertisement
dcuddihy-acr-me

kewr.acr.lan.issues.157

Jul 23rd, 2014
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #
  2. # [kewr.acr.lan issue 157](https://bitbucket.org/autonomy/kewr.acr.lan/issue/157 )
  3. #
  4. set -x
  5.  
  6. echo "Started: " $(date)
  7.  
  8. source /etc/portion.env
  9. source /etc/profile.d/runtime-context.sh
  10.  
  11. echo $RUNTIME_CONTEXT
  12. echo $PYTHONPATH
  13. export TERM=xterm
  14.  
  15. # Create /var/tmp/host
  16. mkdir -p /opt/data/host
  17. ln -s /var/tmp/ /opt/data/host/var-tmp
  18. ln -s /etc/crontab /opt/data/host/crontab
  19.  
  20. # Make sure apache2 is installed and and replace refs to
  21. # /var/www to /opt/data as per our canonical apache2
  22. # deployment.
  23. apt-get -y --force-yes install apache2
  24. find /etc/apache2 -exec sed -i 's:/var/www:/opt/data:' {} \;
  25. sudo service apache2 restart
  26.  
  27. # Create /var/tmp/tickets
  28. mkdir -p /var/tmp/tickets
  29. chown eroboto /var/tmp/tickets
  30.  
  31. echo "Finished: " $(date)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement