From ea052d5050bf10ffa27bc47267c27dbbee98de2b Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Wed, 8 Sep 2021 17:03:09 +0000 Subject: [PATCH] let httpd-fg.sh and apache2-fg.sh to update PerlSetEnv CODEPOT_CONFIG_FILE --- codepot/docker/apache2-fg.sh | 3 +++ codepot/docker/httpd-fg.sh | 2 ++ 2 files changed, 5 insertions(+) diff --git a/codepot/docker/apache2-fg.sh b/codepot/docker/apache2-fg.sh index c78751c0..5fd15992 100755 --- a/codepot/docker/apache2-fg.sh +++ b/codepot/docker/apache2-fg.sh @@ -136,6 +136,9 @@ grep -F -q '' /etc/apache2/conf-enabled/codepot.conf || { EOF } +sed -r -i "s|PerlSetEnv CODEPOT_CONFIG_FILE .*\$|PerlSetEnv CODEPOT_CONFIG_FILE ${CODEPOT_CONFIG_FILE}|g" /etc/apache2/conf-enabled/codepot.conf + + ## change the port number as specified on the command line echo "Configuring to listen on the port[$SERVICE_PORT] hide-index-page[$HIDE_INDEX_PAGE] https-redirected[$HTTPS_REDIRECTED]" diff --git a/codepot/docker/httpd-fg.sh b/codepot/docker/httpd-fg.sh index e4db4bd7..c26973cf 100755 --- a/codepot/docker/httpd-fg.sh +++ b/codepot/docker/httpd-fg.sh @@ -132,6 +132,8 @@ grep -F -q 'env[CODEPOT_CONFIG_FILE]' /etc/php-fpm.d/www.conf || { echo "env[CODEPOT_CONFIG_FILE] = ${CODEPOT_CONFIG_FILE}" >> /etc/php-fpm.d/www.conf } +sed -r -i "s|PerlSetEnv CODEPOT_CONFIG_FILE .*\$|PerlSetEnv CODEPOT_CONFIG_FILE ${CODEPOT_CONFIG_FILE}|g" /etc/httpd/conf.d/codepot.conf + ## change the port number as specified on the command line echo "Configuring to listen on the port[$SERVICE_PORT] hide-index-page[$HIDE_INDEX_PAGE] https-redirected[$HTTPS_REDIRECTED]"