#!/bin/sh -e config='/srv/4get/data/config.php' defconfig='/srv/4get/data/config.def.php' # check for the configuration file if [ ! -f "${config}" ]; then echo "configuration file not specified" echo "here's the default configuration, modify and mount this to ${config}" echo cat "${defconfig}" exit 1 fi # execute apache echo "starting apache web server" exec httpd -D FOREGROUND