This file is indexed.

postinst is in semanticscuttle 0.98.5+dfsg-1.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/sh

set -e

case "$1" in
	configure)

		# source debconf stuff
		. /usr/share/debconf/confmodule

		# permissions
		mkdir -p /var/cache/semanticscuttle
		
		CACHE_DIR=" /var/cache/semanticscuttle"
		CACHE_AUX=$(dpkg-statoverride --list | grep $CACHE_DIR) || true
		if [ -z "$CACHE_AUX" ]; then
			dpkg-statoverride --update --add root www-data 0774 $CACHE_DIR
		fi
		
		# source dbconfig-common stuff
		. /usr/share/dbconfig-common/dpkg/postinst.mysql
		dbc_first_version="0.98.3"
		dbc_generate_include="php:/etc/semanticscuttle/database.php"
		dbc_generate_include_owner="root:www-data"
		dbc_generate_include_perms="0640"
		dbc_generate_include_args="--dbserver=dbhost"
		dbc_go semanticscuttle $@

		# debconf messages	
      		db_get semanticscuttle/webserver || true
		WEBSERVER="$RET";

		# webserver configuration
		if $WEBSERVER; then
			if [ ! -d /etc/apache2/conf.d/ ]; then
			       	install -d -m755 /etc/apache2/conf.d/
			fi

			if [ ! -e /etc/apache2/conf.d/semanticscuttle.conf ]; then
				ln -s /etc/semanticscuttle/apache.conf \
					/etc/apache2/conf.d/semanticscuttle.conf
				restart="apache2"
			fi

	        	servers="apache2"
        		. /usr/share/wwwconfig-common/restart.sh
		fi
	;;

    	abort-upgrade|abort-remove|abort-deconfigure)
	
	;;
   	 *)
		echo "postinst called with unknown argument \`$1'" >&2
	;;
esac