#!/bin/bash
# a6 - Apache Deployment Helper

set -e

source "/home/zwelch/src/mcf/mcsh-release/install/share/mcsh/mcsh.sh"

lib_load 'net/tool/apache'


######
# Apache CLI

# a6_conf() - Dispatches configuration commands
a6_conf() { apache_config_dispatch "$@"; }

# a6_serv() - Dispatches server commands
a6_serv() { apache_server_dispatch "$@"; }

# a6_site() - Dispatches site commands
a6_site() { apache_site_dispatch "$@"; }


######
# Main

# a6_desc() - Prints program description
a6_desc() { echo "Apache2 Deployment Helper"; }

# a6_usage() - Prints top-level usage information.
a6_usage() {
	cat <<USAGE
<cmd> ...
Apache2 Deployment Commands:
	conf ...			Server configuration commands
	serv ...			Server management commands
	site ...			Site management commands
USAGE
}

# a6_help() - Prints top-level help text.
a6_help() {
	cat <<'HELP'

The $script_name tool manages Apache 2.x deployments.

The ``conf`` and ``serv`` commands enable integrated management of an
apache server and its configuration files, allowing fast and painless
deployment and modification.

The ``site`` commands enable easy creation and deployment of new sites,
configuration based on existing templates, SSL certificates for sites,
and more.
HELP
}

app_run "$@"

View the Developer Guide Index

View the Reference Manual Index


Generated on Fri Jul 28 14:34:33 PDT 2017 by mcsh d14 v0.23.0.