postinst: Rely on needrestart when present on the system
Bug #1935972 reported by
Simon Chopin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pam (Ubuntu) |
Fix Released
|
Undecided
|
Brian Murray |
Bug Description
This patch bypasses the custom restarting logic backed into the postinst script if the needrestart utility is present, as it allows sharing the logic with the rest of the system.
It also changes the custom logic to compare the old package version to the current one instead of a hard-coded value. I don't feel particularly strongly about this, so feel free to drop it :)
Changed in pam (Ubuntu): | |
status: | New → In Progress |
assignee: | nobody → Brian Murray (brian-murray) |
To post a comment you must log in.
From what I can piece together from the debian/changelog it seems that the version is hard-coded because it is only ever updated when the libpam0g.symbols file is updated which is why services would need to be restarted. Subsequently, I'm dropping that part of the patch.