From f499157f393a851909e733c9f259a71b619c0d84 Mon Sep 17 00:00:00 2001 From: startxfr Date: Sun, 1 Jan 2017 14:16:48 +0100 Subject: put php function as lib --- Services/php/Dockerfile | 6 +++--- Services/php/run.sh | 30 +----------------------------- Services/php/sx-php.sh | 30 ++++++++++++++++++++++++++++++ 3 files changed, 34 insertions(+), 32 deletions(-) create mode 100644 Services/php/sx-php.sh diff --git a/Services/php/Dockerfile b/Services/php/Dockerfile index f3e6c0e..4eeae7a 100644 --- a/Services/php/Dockerfile +++ b/Services/php/Dockerfile @@ -10,11 +10,11 @@ RUN dnf -y install php php-cli php-pear \ && dnf clean all COPY httpd.conf $HTTPDCONF COPY php.ini /etc/php.d/sx.ini -COPY run.sh /bin/ -RUN chmod 775 /bin/run.sh && \ +COPY *.sh /bin/ +RUN chmod 775 /bin/run.sh /bin/sx-php.sh && \ chmod ug+r $HTTPDCONF COPY ./ $APP_PATH -RUN rm -f $APP_PATH/Dockerfile $APP_PATH/httpd.conf $APP_PATH/run.sh && \ +RUN rm -f $APP_PATH/Dockerfile $APP_PATH/httpd.conf $APP_PATH/run.sh $APP_PATH/sx-php.sh && \ chown -R apache:apache $DATA_PATH $APP_PATH $LOG_PATH && \ chmod ug+r -R $DATA_PATH $APP_PATH diff --git a/Services/php/run.sh b/Services/php/run.sh index e3c4c86..7cd0b92 100644 --- a/Services/php/run.sh +++ b/Services/php/run.sh @@ -1,33 +1,5 @@ #!/bin/bash -source /bin/sx-lib.sh -source /bin/sx-httpd.sh - -function display_container_php_header { - echo "+=====================================================" - echo "| Container : $HOSTNAME" - echo "| OS : $(