File: libapache2-mod-mapcache.postinst

package info (click to toggle)
mapcache 1.4.1-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,892 kB
  • ctags: 2,572
  • sloc: ansic: 25,570; xml: 367; sh: 92; makefile: 66; 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#