File: colplot.config

package info (click to toggle)
colplot 5.0.1-4
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,576 kB
  • sloc: perl: 3,244; sh: 235; makefile: 9
file content (29 lines) | stat: -rw-r--r-- 726 bytes parent folder | download | duplicates (5)
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
#!/bin/sh

set -e

action=$1
version=$2

## Source debconf library
. /usr/share/debconf/confmodule

if [ "$version" != "" ] ; then
    webservers="None"
    # Determine if one of the supported webservers is actually configured for colplot
    # Both have old style and new style configuration names (in that order)
    if [ -e /etc/apache2/conf.d/colplot.conf -o -e /etc/apache2/conf-enabled/colplot.conf ] ; then
	webservers="apache2"
    fi
    if [ -e /etc/lighttpd/conf-enabled/colplot.conf -o -e /etc/lighttpd/conf-enabled/20-colplot.conf ] ; then
	webservers="lighttpd"
    fi
    db_set colplot/webserver "$webservers"
fi

# which web-server should I use?
db_input high colplot/webserver || true

db_go || true

exit 0