~cisco-openstack/glance/essex

« back to all changes in this revision

Viewing changes to debian/glance-registry.postinst

  • Committer: Adam Gandelman
  • Date: 2012-04-12 21:27:39 UTC
  • Revision ID: adamg@canonical.com-20120412212739-j833ff3ahcst2rgj
debian/glance-registry.postinst:  Ensure new database is version_controlled
before first call of db_sync. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
then
7
7
        if ! grep sql_connection /etc/glance/glance-registry.conf | grep -qv "sql_connection = sqlite:////var/lib/glance/glance.sqlite"
8
8
        then
 
9
                if [ ! -e /var/lib/glance/glance.sqlite ] ; then
 
10
                        su -s /bin/sh -c 'glance-manage version_control 0' glance
 
11
                fi
9
12
                su -s /bin/sh -c 'glance-manage db_sync' glance
10
13
        fi
11
14
fi