File: telnetd.preinst

package info (click to toggle)
netkit-telnet 0.17-41.2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,412 kB
  • sloc: cpp: 6,451; ansic: 4,263; sh: 110; makefile: 64
file content (14 lines) | stat: -rw-r--r-- 221 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

set -e

case "$1" in
upgrade)
	## change the HOME dir of telnetd to something not /
	if [ -n "$2" ] && dpkg --compare-versions "$2" lt 0.17-27; then
		usermod -d /nonexistent telnetd 
	fi
	;;
esac

#DEBHELPER#