From a471e7d8a1590ca0efb44c6c41c8b2e1e42bacdf Mon Sep 17 00:00:00 2001 From: jaimelm Date: Fri, 30 Oct 2020 07:40:58 -0400 Subject: [PATCH] adding some logging --- prod/prod-app/httpd-pre-init/customize-apache.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/prod/prod-app/httpd-pre-init/customize-apache.sh b/prod/prod-app/httpd-pre-init/customize-apache.sh index d3acff7..05b5f6b 100755 --- a/prod/prod-app/httpd-pre-init/customize-apache.sh +++ b/prod/prod-app/httpd-pre-init/customize-apache.sh @@ -7,4 +7,6 @@ sed -i 's#/opt/rh/httpd24/root/var/www/cgi-bin#/opt/app-root/src/cgi-bin#g' /etc # Check for the DATA_DIR environment variable. If it exists, set an httpd environment variable with that value. This is the path where the data files with be written to. if [[ -v DATA_DIR ]]; then echo "SetEnv DATA_DIR ${DATA_DIR}" >> /etc/httpd/conf/httpd.conf +else + echo "No DATA_DIR defined." fi