check_logfiles: 3.7.5.1
[omd.git] / packages / omd / APACHE_MODE.hook
blob579769c3dc406a908bcd31ca4ce464c19bba2c37
1 #!/bin/bash
3 # Alias: Webserver mode to use
4 # Menu: Web GUI
5 # Description:
6 # Here you can choose the mode to run your webserver with. The value "own"
7 # will start an individual Apache process for this site, running as site
8 # user. No root priviledges are required to administer it. The main
9 # Apache redirects request for this site to it via mod_proxy.
11 # The value "none" will not start a webserver nor create a configuration
12 # for the global Apache.
14 case "$1" in
15 default)
16 if [ ! -z "$CONFIG_WEBSERVER" ]; then echo "$CONFIG_WEBSERVER"; else echo "own"; fi
18 choices)
19 echo "own: Run an own webserver process for this instance"
20 echo "none: Do not run or configure a webserver"
22 set)
23 # When one configured shared, fallback to own mode
24 if [ "$2" == "own" ] || [ "$2" == "shared" ]; then
25 ln -sfn apache-own.conf $OMD_ROOT/etc/apache/mode.conf
26 elif [ "$2" == "shared" ] ; then
27 echo "DEPRECATION WARNING: the shared apache mode has been removed."
28 exit 1
29 elif [ "$2" == "none" ] ; then
30 rm -f $OMD_ROOT/etc/apache/mode.conf
31 : > $OMD_ROOT/etc/apache/mode.conf
34 esac