#!/bin/bash source /bin/sx-lib.sh source /bin/sx-httpd.sh if [[ "$0" == *"run.sh" && ! $1 = "" ]];then eval "$@"; fi function display_container_php_header { echo "+=====================================================" echo "| Container : $HOSTNAME" echo "| OS : $( BEGIN APACHE + PHP CONFIGURATION" } # End configuration process just before starting daemon function end_php_config { echo "=> END APACHE + PHP CONFIGURATION" } check_httpd_environment | tee -a $STARTUPLOG display_container_php_header | tee -a $STARTUPLOG begin_php_config | tee -a $STARTUPLOG end_php_config | tee -a $STARTUPLOG start_daemon