~ubuntu-branches/ubuntu/trusty/ufw/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/postinst

  • Committer: Bazaar Package Importer
  • Author(s): Jamie Strandboge
  • Date: 2010-01-30 09:42:05 UTC
  • mfrom: (30.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20100130094205-8wsowzipc32k48yy
Tags: 0.29.3-0ubuntu1
* New upstream release. Fixes:
  LP: #490366
  LP: #512131
  LP: #488032
  LP: #513387
* debian/ufw.upstart.ubuntu: start before an interface receives traffic
* debian/postinst: don't sed or chmod a file that doesn't exist
  (LP: #503039)
* debian/after*.rules.md5sum: updated for ucf (added additional sums for
  people using the workaround in LP: #488032)

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
        return 1
17
17
    fi
18
18
 
19
 
    sed -i "s/^ENABLED=.*/ENABLED=$ans/" /etc/ufw/ufw.conf
 
19
    test -f /etc/ufw/ufw.conf && sed -i "s/^ENABLED=.*/ENABLED=$ans/" /etc/ufw/ufw.conf
20
20
}
21
21
 
22
22
allow_port() {
56
56
        for f in before.rules before6.rules after.rules after6.rules
57
57
        do
58
58
            ucf --debconf-ok $TEMPLATE_PATH/$f $RULES_PATH/$f
59
 
            chmod 640 $RULES_PATH/$f
 
59
            test -f $RULES_PATH/$f && chmod 640 $RULES_PATH/$f
60
60
        done
61
61
 
62
62
        for f in user.rules user6.rules