~charmers/charms/precise/python-django/trunk

« back to all changes in this revision

Viewing changes to hooks/common.incl

  • Committer: Mark Mims
  • Date: 2013-07-14 19:23:16 UTC
  • mfrom: (24.1.57 python-django)
  • Revision ID: mark.mims@canonical.com-20130714192316-eymvpkvudhtujgtl
merging lp:~patrick-hetu/charms/precise/python-django/python-rewrite as per lp:~patrick-hetu/charms/precise/python-django/python-rewrite

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash
2
 
 
3
 
UNIT_NAME=$(echo $JUJU_UNIT_NAME | cut -d/ -f1)
4
 
VCS=$(config-get vcs)
5
 
REPOS_URL=$(config-get repos_url)
6
 
UNIT_DIR=/srv/${UNIT_NAME}
7
 
APP_PATH=$(config-get application_path)
8
 
if [ -n "$APP_PATH" ]; then
9
 
    APP_DIR=${UNIT_DIR}/${APP_PATH}
10
 
else
11
 
    APP_DIR=${UNIT_DIR}
12
 
fi
13