File: postinst

package info (click to toggle)
libpam-ssh 2.1%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,296 kB
  • ctags: 1,465
  • sloc: ansic: 16,551; makefile: 95; sh: 38
file content (23 lines) | stat: -rwxr-xr-x 509 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
set -e
case "$1" in
	configure)
		if [ -f /etc/init.d/libpam-ssh ]; then
			echo -n "Removing trailing old script.."
			update-rc.d -f libpam-ssh remove > /dev/null 2>&1
			echo -n "."
			rm -f /etc/init.d/libpam-ssh > /dev/null 2>&1
			echo "Ok."
		fi
		## Install setup files in /usr/share/pam-configs.
		pam-auth-update --package
		;;
	abort-upgrade|abort-remove|abort-deconfigure)
		## Do nothing.
		;;
	*)
		echo "postinst called with unknown argument \`$1'" >&2
		exit 1
		;;
esac
#DEBHELPER#