~b.clermont-deactivatedaccount/graphite/debian-packaging

« back to all changes in this revision

Viewing changes to debian/postinst

  • Committer: Bruno Clermont
  • Date: 2011-09-22 23:22:37 UTC
  • Revision ID: bruno.clermont@gmail.com-20110922232237-ttv7sa02zgedgjht
rewrite graphite packaging

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
case "$1" in
 
4
    configure)
 
5
        echo "Do not forget to create a PostgreSQL or MySQL database and edit /etc/graphite/settings.py"
 
6
        chown graphite /var/log/graphite/webapp
 
7
# initialize graphite database with essential data. syncdb will only
 
8
# create tables for models which have not yet been installed.  It will
 
9
# never issue ALTER TABLE statements to match changes made to a model
 
10
# class after installation.
 
11
 
 
12
        #update-python-modules -p graphite.public
 
13
        #su www-data -p -c "django-admin syncdb --pythonpath=/usr/lib/pymodules/python2.6 --settings graphite.settings --noinput"
 
14
 
 
15
# override file permissions in /var/lib/graphite
 
16
 
 
17
        #for i in `find /var/lib/graphite -maxdepth 2 -type d` ; do
 
18
# only do something when no setting exists
 
19
            #if ! dpkg-statoverride --list $i >/dev/null 2>&1
 
20
            #then
 
21
                #dpkg-statoverride --update --add www-data www-data 4755 $i
 
22
            #fi
 
23
        #done
 
24
        ;;
 
25
 
 
26
    abort-upgrade|abort-remove|abort-deconfigure)
 
27
        ;;
 
28
 
 
29
    *)
 
30
        echo "postinst called with unknown argument \`$1'" >&2
 
31
        exit 1
 
32
        ;;
 
33
esac
 
34
 
 
35
#DEBHELPER#