#!/bin/bash

# Alias: Webserver mode to use
# Menu: Web GUI
# Description:
#  Here you can choose the mode to run your webserver with. The value "own"
#  will start an individual Apache process for this site, running as site
#  user. No root priviledges are required to administer it. The main
#  Apache redirects request for this site to it via mod_proxy.
#
#  The value "none" will not start a webserver nor create a configuration
#  for the global Apache.

case "$1" in
    default)
            if [ -n "$CONFIG_WEBSERVER" ]; then
                echo "$CONFIG_WEBSERVER"
            else
                echo "own";
            fi
    ;;
    choices)
            echo "own: Run an own webserver process for this instance"
            echo "none: Do not run or configure a webserver"
    ;;
esac
