~ubuntu-cloud-archive/ubuntu/precise/nova/trunk

« back to all changes in this revision

Viewing changes to debian/nova-volume.postinst

  • Committer: Package Import Robot
  • Author(s): Chuck Short, Adam Gandelman, Chuck Short
  • Date: 2012-09-27 12:36:04 UTC
  • mfrom: (1.1.65)
  • Revision ID: package-import@ubuntu.com-20120927123604-xkh3oi2lu3nfhxqr
Tags: 2012.2-0ubuntu1
[ Adam Gandelman ]
* debian/control: Depend on python-sqlalchemy >= 0.7.8-1.

[ Chuck Short ]
* New upstream release.
* debian/control: Dont conflict with novnc. (LP: #1055505)
* debian/nova-volume.postinst, nova-common.dirs: Configure nova-volumes
  to use tgtd properly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
if [ "$1" = "configure" ]; then
4
4
  chown root:root /etc/nova/rootwrap.d/volume.filters
 
5
 
 
6
  if which invoke-rc.d >/dev/null 2>&1; then
 
7
        invoke-rc.d tgtd restart > /dev/null 2>&1 || true
 
8
  else
 
9
        /etc/init.d/tgtd restart > /dev/null 2>&1 || true
 
10
  fi
 
11
 
 
12
  if which invoke-rc.d >/dev/null 2>&1; then
 
13
        invoke-rc.d nova-volume restart > /dev/null 2>&1 || true
 
14
  else
 
15
        /etc/init.d/nova-volume restart > /dev/null 2>&1 || true
 
16
  fi
5
17
fi
6
18
 
7
19
#DEBHELPER#