[go: up one dir, main page]

File: postinst

package info (click to toggle)
sing 1.1-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,396 kB
  • ctags: 2,093
  • sloc: ansic: 20,740; sh: 4,160; makefile: 721; yacc: 234; lex: 203
file content (26 lines) | stat: -rw-r--r-- 423 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh


if [ "$1" = configure ]; then
	        if [ -d /usr/doc -a ! -e /usr/doc/sing -a -d /usr/share/doc/sing ];
then
                ln -sf ../share/doc/sing /usr/doc/sing
        fi
fi

RET="false"
sing_mode="0755"

if [ -e /usr/share/debconf/confmodule ]; then
	. /usr/share/debconf/confmodule
	db_get sing/suid_or_not
fi

if [ "$RET" = "true" ]; then
	sing_mode="4755"
fi

chmod $sing_mode /usr/bin/sing


exit 0