File: libapache2-mod-mapcache.postinst

package info (click to toggle)
mapcache 1.10.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,760 kB
  • sloc: ansic: 32,573; xml: 843; sh: 143; makefile: 69; python: 48
file content (20 lines) | stat: -rw-r--r-- 411 bytes parent folder | download | duplicates (7)
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#