File: libapache2-mod-mapcache.postinst

package info (click to toggle)
mapcache 1.14.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,844 kB
  • sloc: ansic: 33,609; xml: 889; sh: 183; makefile: 61; python: 48
file content (20 lines) | stat: -rw-r--r-- 411 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

if [ "$1" = configure ] ; then
	if [ -e /var/cache/mapcache ]; then
		chown root:www-data /var/cache/mapcache
		chmod 775 /var/cache/mapcache
	fi

	# only enable on new installs, not on upgrades
	if [ -z "$2" ] ; then
		if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
			. /usr/share/apache2/apache2-maintscript-helper
			apache2_invoke enmod mapcache
		fi
	fi
fi

#DEBHELPER#