Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # [kewr.acr.lan issue 157](https://bitbucket.org/autonomy/kewr.acr.lan/issue/157 )
- #
- set -x
- echo "Started: " $(date)
- source /etc/portion.env
- source /etc/profile.d/runtime-context.sh
- echo $RUNTIME_CONTEXT
- echo $PYTHONPATH
- export TERM=xterm
- # Create /var/tmp/host
- mkdir -p /opt/data/host
- ln -s /var/tmp/ /opt/data/host/var-tmp
- ln -s /etc/crontab /opt/data/host/crontab
- # Make sure apache2 is installed and and replace refs to
- # /var/www to /opt/data as per our canonical apache2
- # deployment.
- apt-get -y --force-yes install apache2
- find /etc/apache2 -exec sed -i 's:/var/www:/opt/data:' {} \;
- sudo service apache2 restart
- # Create /var/tmp/tickets
- mkdir -p /var/tmp/tickets
- chown eroboto /var/tmp/tickets
- echo "Finished: " $(date)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement