54
54
juju-log "Creating deployment directories..."
55
55
mkdir -p ${DEPLOY_ROOT} ${DEPLOY_ROOT}/local_config ${DEPLOY_ROOT}/scripts ${DEPLOY_ROOT}-logs /srv/${BASEDIR}/var
56
57
juju-log "Branching from ${BZR_SOURCE_BRANCH}:${BZR_SOURCE_REVNO} to ${CODE_LOCATION}-${BZR_SOURCE_REVNO}"
57
58
bzr branch -r ${BZR_SOURCE_REVNO} ${BZR_SOURCE_BRANCH} ${CODE_LOCATION}-${BZR_SOURCE_REVNO}
58
60
juju-log "Creating symlink from ${CODE_LOCATION}-${BZR_SOURCE_REVNO} to ${CODE_LOCATION}"
59
61
ln -s ${CODE_LOCATION}-${BZR_SOURCE_REVNO} ${CODE_LOCATION}
78
68
juju-log "Changing ownership of /srv/${BASEDIR}"
79
69
chown -R $USER_CODE_OWNER:$GROUP_CODE_RUNNER /srv/${BASEDIR}