~ubuntu-branches/ubuntu/intrepid/firestarter/intrepid

« back to all changes in this revision

Viewing changes to debian/postinst

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc
  • Date: 2007-04-10 11:52:55 UTC
  • Revision ID: james.westby@ubuntu.com-20070410115255-exy4bey2g2gzmfuw
Tags: 1.0.3-2ubuntu1
* Merge from debian unstable. (fixes removal/purge issue, see LP: #83728)
* Remaining Ubuntu changes:
  + Add "GNOME" to .desktop Categories (closes Ubuntu #42452, #42501)
  + Don't run browser as root (closes Ubuntu #569)
  + debian/firestarter.init: apply patch from Daniel Robitaille adding
    lsb-base functions. Thanks also to Lionel Le Folgoc for taking note of
    this. (Closes: Malone #34217)
* Adhere to DebianMaintainerField.
* debian/postinst: use /bin/bash instead of /bin/sh (possible bashism).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
set -e
 
3
 
 
4
#DEBHELPER#
 
5
 
 
6
if [ -s /etc/firestarter/configuration -a -x /usr/sbin/firestarter ];then
 
7
        /usr/sbin/firestarter --generate-scripts
 
8
fi
 
9
 
 
10
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
 
11
        invoke-rc.d firestarter restart || true
 
12
else
 
13
        /etc/init.d/firestarter restart || true
 
14
fi
 
15