mirror of https://github.com/tLDP/LDP
33 lines
801 B
Plaintext
33 lines
801 B
Plaintext
<programlisting>
|
|
#!/bin/sh
|
|
|
|
#############################################################################
|
|
##
|
|
## /usr/bin/MySoftware
|
|
##
|
|
## Business logic of MyProgram system.
|
|
## Do not change nothing in this file. All configuration can be
|
|
## made on /etc/MySoftware.conf
|
|
##
|
|
## We'll not support any modifications made here.
|
|
##
|
|
|
|
# Default configuration file
|
|
CONF=/etc/MySoftware.conf <co id="ex.body.const.c1"/>
|
|
|
|
# Minimal content directories
|
|
MIN_CONTENT_PATH=/var/www:/var/MySoftware/www <co id="ex.body.const.c2"/>
|
|
|
|
if [ -r "$CONF"]; then
|
|
. "$CONF" <co id="ex.body.conf"/>
|
|
fi
|
|
|
|
# All the content I'll serve are the "minimal" plus the ones provided
|
|
# by the user in the configuration file $CONF
|
|
CONTENT_PATH=$MIN_CONTENT_PATH:$CONF_CONTENT_PATH <co id="ex.body.merge"/>
|
|
|
|
.
|
|
.
|
|
.
|
|
</programlisting>
|