#!/bin/bash -e

if [ -e /usr/local/sti/assemble ]; then
  # old assemble location in previous php image versions
  source /usr/local/sti/assemble
else 
  source ${STI_SCRIPTS_PATH}/assemble
fi

[[ -d ./app/tmp ]] && chmod -R go+rw ./app/tmp

# Get access to `cake` shell command for generating DB schema and migrations
if [ -f ${HOME}/app/Console/cake ]; then
	ln -s ${HOME}/app/Console/cake ${HOME}/bin/cake
fi
