From 7fe1c9cf9f114d40fe3f534a3902f3dff73c602f Mon Sep 17 00:00:00 2001 From: startxfr Date: Sun, 6 Dec 2015 16:41:23 +0100 Subject: correcting bug and improve startup display --- Services/php/run.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Services/php/run.sh') diff --git a/Services/php/run.sh b/Services/php/run.sh index a092c56..657fbba 100644 --- a/Services/php/run.sh +++ b/Services/php/run.sh @@ -37,6 +37,17 @@ function display_container_php_header { # and start generating host keys function begin_php_config { echo "=> BEGIN APACHE + PHP CONFIGURATION" + if [[ -d $TMP_APP_PATH ]]; then + if [ "$(ls -A $TMP_APP_PATH)" ]; then + echo "COPY application from $TMP_APP_PATH into $APP_PATH" + FILE_LIST=$(find $TMP_APP_PATH -maxdepth 1 -mindepth 1 -printf "%f\n") + for FILE in $FILE_LIST; do + echo -n "adding $APP_PATH/$FILE" + cp -r $TMP_APP_PATH/$FILE $APP_PATH/ + echo " DONE" + done + fi + fi } # End configuration process just before starting daemon -- cgit v1.2.3