| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
set -e |
| 4 |
|
| 5 |
# pam-auth-update --remove removes the named profile from the active config. |
| 6 |
# It arguably should be called during deconfigure as well, but deconfigure |
| 7 |
# can happen in some cases during a dist-upgrade and we don't want to |
| 8 |
# deconfigure all PAM modules in the middle of a dist-upgrade by accident. |
| 9 |
# |
| 10 |
# More importantly, with the current implementation, --remove also removes |
| 11 |
# all local preferences for the named config (such as whether it's enabled |
| 12 |
# or disabled), which we don't want to do on deconfigure. |
| 13 |
# |
| 14 |
# This may need to change later as pam-auth-update evolves. |
| 15 |
|
| 16 |
if [ "$1" = "remove" ] ; then |
| 17 |
pam-auth-update --package --remove afs-session |
| 18 |
fi |
| 19 |
|
| 20 |
#DEBHELPER# |