]> git.proxmox.com Git - mirror_ifupdown2.git/commit - debian/ifupdown2.postinst
ifupdown2: fixup maintainer scripts
authorJonathan Toppins <jtoppins@cumulusnetworks.com>
Tue, 21 Apr 2015 21:07:46 +0000 (14:07 -0700)
committerJonathan Toppins <jtoppins@cumulusnetworks.com>
Mon, 27 Apr 2015 22:33:54 +0000 (15:33 -0700)
commitd1017fec7ab79b872c86c0df8d632910771124e4
tree1ca8e489c4988c92c648c278589c1a1646b29882
parente308cb8280c9f55121665dbfe15c5d94f775491e
ifupdown2: fixup maintainer scripts

Ticket: CM-5764
Reviewed By: TBA
Testing Done: of course none ;) Will update when I have some time to test

fupdown2's postinst and postrm scripts do not conform to Debian's policy
for maintainer scripts [1]. Specific non-conformance follows:

* fixed maintainer scripts so they only use /bin/sh as other shells are
  non-essential packages and may not exist on the system
* fixed maintainer scripts so only actions specified by $1 are performed
  per run of the script
* fixed maintainer scripts to only support specific values for $1, and
  will otherwise exit with error
* included at the bottom of the postrm script the "#DEBHELPER#" tag as
  during package building debianhelper will inject extra code at this
  location

[1] https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html
(cherry picked from commit 2289fe4e90a0134fcb07fe7e2e838de755d73e68)
debian/python-ifupdown2.postinst
debian/python-ifupdown2.postrm