From 3860a7bd56c46dbddb70aae8104e7bfdb91cb3e1 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Tue, 7 Sep 2021 08:27:41 +0000 Subject: [PATCH] updating the apache2-fg.sh file --- codepot/docker/apache2-fg.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/codepot/docker/apache2-fg.sh b/codepot/docker/apache2-fg.sh index 3e32fd3d..7c1711de 100755 --- a/codepot/docker/apache2-fg.sh +++ b/codepot/docker/apache2-fg.sh @@ -49,7 +49,14 @@ mkdir -p /var/cache/codepot /var/log/codepot chown -R www-data:www-data /var/lib/codepot /var/cache/codepot /var/log/codepot [ ! -f /var/lib/codepot/codepot.ini ] && cp -pf /etc/codepot/codepot.ini /var/lib/codepot/codepot.ini -export CODEPOT_CONFIG_FILE=/var/lib/codepot/codepot.ini + +grep -F -q '' /etc/apache2/conf-enabled/codepot.conf || { + cat <> /etc/apache2/conf-enabled/codepot.conf + + SetEnv CODEPOT_CONFIG_FILE /var/lib/codepot/codepot.ini + +EOF +} #httpd server in the foreground exec apache2 -DFOREGROUND "$@"