~brunogirin/charms/precise/python-django/username-password

« back to all changes in this revision

Viewing changes to hooks/install

  • Committer: Patrick Hetu
  • Date: 2012-03-27 02:36:18 UTC
  • Revision ID: patrick.hetu@gmail.com-20120327023618-zclt3sjwdli9zk2c
branch before working in the branch + umask

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
 
13
13
apt-get install -y python-django gunicorn python-imaging python-docutils python-psycopg2 python-pip python-jinja2 mercurial git-core subversion bzr postgresql-client $EXTRA_DEB_PKGS
14
14
 
15
 
mkdir -p /srv/${UNIT_NAME}/run
16
 
mkdir -p /srv/${UNIT_NAME}/logs
17
15
 
18
16
if [ ! -d "/srv/${UNIT_NAME}" ]; then
19
17
 
24
22
        git)
25
23
            git clone ${REPOS_URL} /srv/${UNIT_NAME}
26
24
            ;;
27
 
bzr)
 
25
    bzr)
28
26
            bzr branch ${REPOS_URL} /srv/${UNIT_NAME}
29
27
            ;;
30
28
        svn)
33
31
        esac
34
32
fi
35
33
 
36
 
umask 0022
37
 
rm /srv/${UNIT_NAME}/src -rf
 
34
mkdir -p /srv/${UNIT_NAME}/run
 
35
mkdir -p /srv/${UNIT_NAME}/logs
38
36
 
39
37
cd /srv/${UNIT_NAME}/
40
38
pip install -r ${REQUIREMENTS}