~james-page/horizon/refresh-static-assets-fix-type

« back to all changes in this revision

Viewing changes to debian/openstack-dashboard.postrm

  • Committer: James Page
  • Date: 2013-09-02 09:07:20 UTC
  • Revision ID: james.page@canonical.com-20130902090720-xim6464sc55lva4q
d/openstack-dashboard.p*: Fix typo in configuration file name,
ensure consistent use of tabs/spaces.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
 
2
# vim: set ts=2 et:
2
3
 
3
4
set -e
4
5
 
11
12
 
12
13
# Transition config to apache 2.4 compatable location.
13
14
dpkg-maintscript-helper mv_conffile \
14
 
 /etc/apache2/conf.d/openstack-dashboared.conf \
15
 
 /etc/apache2/conf-available/openstack-dashboard.conf \
16
 
 1:2013.2~b2-0ubuntu3 -- "$@"
 
15
  /etc/apache2/conf.d/openstack-dashboard.conf \
 
16
  /etc/apache2/conf-available/openstack-dashboard.conf \
 
17
  1:2013.2~b2-0ubuntu3 -- "$@"
17
18
 
18
19
if [ "$1" = "remove" ] || [ "$1" = "purge" ] ; then
19
20
  A22_STATE=$(dpkg-query -f '${Status}' -W 'apache2.2-common' 2>/dev/null | awk '{print $3}' || true)
25
26
  elif [ "$A22_STATE" = "installed" ] || [ "$A22_STATE" = "unpacked" ] ; then
26
27
    # apache 2.2
27
28
    [ -d /etc/apache2/conf.d/ ] && [ -L /etc/apache2/conf.d/$CONF ] &&
28
 
    rm /etc/apache2/conf.d/$CONF
 
29
      rm /etc/apache2/conf.d/$CONF
29
30
    [ -x /etc/init.d/apache2 ] && invoke-rc.d --quiet apache2 reload
30
31
  fi
31
32