File: postinst

package info (click to toggle)
lsh 0.62-9
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 324 kB
  • ctags: 302
  • sloc: ansic: 6,723; makefile: 70; sh: 15
file content (16 lines) | stat: -rw-r--r-- 379 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
set -e

# This has to be here in case 0.60-1 was already installed,
# since lsh moved to a different directory after that version.
if grep -q ^/bin/lsh /etc/shells; then
	cp /etc/shells /etc/shells.new
	sed -e '/lsh$/d' /etc/shells.new >/etc/shells
	rm -f /etc/shells.new
fi

if ! grep -q /usr/bin/lsh /etc/shells; then
	echo /usr/bin/lsh >>/etc/shells
fi

#DEBHELPER#