From 79c76eaef5039276bb3a8725ac8c9f05f89ef0de Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Tue, 1 Oct 2019 19:30:54 +0200 Subject: Optimize Dockerfile --- adei/files/opt/scripts/configure.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 adei/files/opt/scripts/configure.sh (limited to 'adei/files/opt/scripts/configure.sh') diff --git a/adei/files/opt/scripts/configure.sh b/adei/files/opt/scripts/configure.sh new file mode 100755 index 0000000..458c3dc --- /dev/null +++ b/adei/files/opt/scripts/configure.sh @@ -0,0 +1,14 @@ +#! /bin/bash + +chmod 0777 /adei/tmp + +sed -i'' -re 's/^.*pam_loginuid\.so.*$//' /etc/pam.d/crond + +sed -i'' -re 's/APACHE_MODULES="(.*)"/APACHE_MODULES="\1 php5 rewrite proxy mod_proxy_http access_compat"/' /etc/sysconfig/apache2 +sed -i'' -rf /opt/scripts/override.sed /etc/apache2/default-server.conf +sed -i'' -re 's/short_open_tag\s*=.*/short_open_tag = On/' /etc/php5/apache2/php.ini +sed -i'' -re 's@session.save_path\s*=.*@session.save_path=/tmp@' /etc/php5/apache2/php.ini + +# Docker allows to view stdout/stderr streams individually, but OpenShift not. So we skip CustomLog for now +# Redirection fails here. So lets keep logging to stdout for now. +sed -i'' -re 's@^ErrorLog .*@ErrorLog "|/usr/bin/tee -a /var/log/apache2/error_log"@' /etc/apache2/httpd.conf -- cgit v1.2.1